diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2014-02-17 07:56:59 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-02-17 07:57:00 +0000 |
commit | baca5f7e88e07c86f402ae7423bb3171a33688e3 (patch) | |
tree | dbb0edae6f8d08c2314a5595ad59ec467faf7d54 | |
parent | 565480588d2bff4205b437862505e77382189811 (diff) | |
parent | 1829101e285cf7956d045cf7a04a8adb7f4c0109 (diff) | |
download | git-repo-baca5f7e88e07c86f402ae7423bb3171a33688e3.tar.gz |
Merge "Add error message for download -c conflicts"
-rw-r--r-- | subcmds/download.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/subcmds/download.py b/subcmds/download.py index 471e88b5..098d8b43 100644 --- a/subcmds/download.py +++ b/subcmds/download.py | |||
@@ -18,6 +18,7 @@ import re | |||
18 | import sys | 18 | import sys |
19 | 19 | ||
20 | from command import Command | 20 | from command import Command |
21 | from error import GitError | ||
21 | 22 | ||
22 | CHANGE_RE = re.compile(r'^([1-9][0-9]*)(?:[/\.-]([1-9][0-9]*))?$') | 23 | CHANGE_RE = re.compile(r'^([1-9][0-9]*)(?:[/\.-]([1-9][0-9]*))?$') |
23 | 24 | ||
@@ -87,7 +88,12 @@ makes it available in your project's local working directory. | |||
87 | for c in dl.commits: | 88 | for c in dl.commits: |
88 | print(' %s' % (c), file=sys.stderr) | 89 | print(' %s' % (c), file=sys.stderr) |
89 | if opt.cherrypick: | 90 | if opt.cherrypick: |
90 | project._CherryPick(dl.commit) | 91 | try: |
92 | project._CherryPick(dl.commit) | ||
93 | except GitError: | ||
94 | print('[%s] Could not complete the cherry-pick of %s' \ | ||
95 | % (project.name, dl.commit), file=sys.stderr) | ||
96 | |||
91 | elif opt.revert: | 97 | elif opt.revert: |
92 | project._Revert(dl.commit) | 98 | project._Revert(dl.commit) |
93 | elif opt.ffonly: | 99 | elif opt.ffonly: |