Merge "Add error message for download -c conflicts"

This commit is contained in:
David Pursehouse 2014-02-17 07:56:59 +00:00 committed by Gerrit Code Review
commit baca5f7e88

View File

@ -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:
try:
project._CherryPick(dl.commit) 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: