mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Merge "Add error message for download -c conflicts"
This commit is contained in:
commit
baca5f7e88
@ -18,6 +18,7 @@ import re
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from command import Command
|
from command import Command
|
||||||
|
from error import GitError
|
||||||
|
|
||||||
CHANGE_RE = re.compile(r'^([1-9][0-9]*)(?:[/\.-]([1-9][0-9]*))?$')
|
CHANGE_RE = re.compile(r'^([1-9][0-9]*)(?:[/\.-]([1-9][0-9]*))?$')
|
||||||
|
|
||||||
@ -87,7 +88,12 @@ makes it available in your project's local working directory.
|
|||||||
for c in dl.commits:
|
for c in dl.commits:
|
||||||
print(' %s' % (c), file=sys.stderr)
|
print(' %s' % (c), file=sys.stderr)
|
||||||
if opt.cherrypick:
|
if opt.cherrypick:
|
||||||
project._CherryPick(dl.commit)
|
try:
|
||||||
|
project._CherryPick(dl.commit)
|
||||||
|
except GitError:
|
||||||
|
print('[%s] Could not complete the cherry-pick of %s' \
|
||||||
|
% (project.name, dl.commit), file=sys.stderr)
|
||||||
|
|
||||||
elif opt.revert:
|
elif opt.revert:
|
||||||
project._Revert(dl.commit)
|
project._Revert(dl.commit)
|
||||||
elif opt.ffonly:
|
elif opt.ffonly:
|
||||||
|
Loading…
Reference in New Issue
Block a user