Go to file
Rob Ward 1829101e28 Add error message for download -c conflicts
Currently if you run repo download -c on a change and the cherry-pick
runs into a merge conflict a Traceback is produced:

rob@rob-i5-lm ~/Programming/repo_test/repo1 $ repo download -c repo1 3/1
From ssh://rob-i5-lm:29418/repo1
 * branch            refs/changes/03/3/1 -> FETCH_HEAD
error: could not apply 0c8b474... 2
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
Traceback (most recent call last):
  File "/home/rob/Programming/git-repo/main.py", line 408, in <module>
    _Main(sys.argv[1:])
  File "/home/rob/Programming/git-repo/main.py", line 384, in _Main
    result = repo._Run(argv) or 0
  File "/home/rob/Programming/git-repo/main.py", line 143, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/rob/Programming/git-repo/subcmds/download.py", line 90, in Execute
    project._CherryPick(dl.commit)
  File "/home/rob/Programming/git-repo/project.py", line 1943, in _CherryPick
    raise GitError('%s cherry-pick %s ' % (self.name, rev))
error.GitError: repo1 cherry-pick 0c8b4740f876f8f8372bbaed430f02b6ba8b1898

This amount of error message is confusing to users and has the side effect
of the git message telling you the actual issue being ignored.

This change introduces a message stating that the cherry-pick couldn't
be completed removing the Traceback.

To reproduce the issue create a change that causes a conflict with one currently
in review and use repo download -c to cherry-pick the conflicting change.

Change-Id: I8ddf4e0c8ad9bd04b1af5360313f67cc053f7d6a
2014-02-11 18:19:04 +00:00
docs Fix error in xml manifest doc. 2013-12-10 15:30:03 -08:00
hooks hooks/pre-auto-gc: fix AC detection on OSX Maverick 2013-12-17 09:48:20 +07:00
subcmds Add error message for download -c conflicts 2014-02-11 18:19:04 +00:00
tests Fix inconsistent indentation 2012-11-14 11:38:57 +09:00
.gitattributes Protect line endings in shell scripts 2013-02-11 22:13:39 +01:00
.gitignore Add repoc to the .gitignore file 2013-03-08 01:18:08 +00:00
.project Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
.pydevproject Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
.pylintrc Disable warning about locally disabling pylint warnings 2013-05-15 18:06:06 +09:00
color.py Add nofmt_printer to color.py 2013-02-26 16:04:55 +09:00
command.py repo: Support multiple branches for the same project. 2013-10-14 15:34:32 -07:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
error.py Raise a NoManifestException when the manifest DNE 2012-11-15 18:50:11 -08:00
git_command.py Share git version parsing code with wrapper module 2014-01-30 15:18:56 -08:00
git_config.py Stop appending 'p/' to review urls 2014-02-04 15:32:29 -08:00
git_refs.py Fix some python3 encoding issues 2013-11-21 06:03:22 +00:00
git_ssh Don't allow git fetch to start ControlMaster 2010-10-29 08:15:14 -07:00
main.py Implement Kerberos HTTP authentication handler 2014-02-04 09:22:42 +01:00
manifest_xml.py Fix persistent-https relative url resolving 2014-01-31 16:06:31 -08:00
pager.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
progress.py Support units in progress messages 2011-09-19 14:52:57 -07:00
project.py Merge "Only fetch current branch on shallow clients" 2014-01-29 21:12:34 +00:00
pyversion.py Move Python version checking to a separate module 2013-05-23 07:28:53 +00:00
repo Update the version number on the repo launcher 2014-01-30 16:00:35 -08:00
SUBMITTING_PATCHES Add pylint configuration and instructions 2012-10-24 10:18:13 +09:00
trace.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
wrapper.py Add wrapper module 2014-01-30 15:17:09 -08:00