summaryrefslogtreecommitdiffstats
path: root/subcmds/upload.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r--subcmds/upload.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py
index aea399b6..2ab6a484 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -55,11 +55,11 @@ added to the respective list of users, and emails are sent to any
55new users. Users passed as --reviewers must already be registered 55new users. Users passed as --reviewers must already be registered
56with the code review system, or the upload will fail. 56with the code review system, or the upload will fail.
57 57
58If the --replace option is passed the user can designate which 58If the --replace option (deprecated) is passed the user can designate
59existing change(s) in Gerrit match up to the commits in the branch 59which existing change(s) in Gerrit match up to the commits in the
60being uploaded. For each matched pair of change,commit the commit 60branch being uploaded. For each matched pair of change,commit the
61will be added as a new patch set, completely replacing the set of 61commit will be added as a new patch set, completely replacing the
62files and description associated with the change in Gerrit. 62set of files and description associated with the change in Gerrit.
63 63
64Configuration 64Configuration
65------------- 65-------------
@@ -92,7 +92,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
92 def _Options(self, p): 92 def _Options(self, p):
93 p.add_option('--replace', 93 p.add_option('--replace',
94 dest='replace', action='store_true', 94 dest='replace', action='store_true',
95 help='Upload replacement patchesets from this branch') 95 help='Upload replacement patchsets from this branch (deprecated)')
96 p.add_option('--re', '--reviewers', 96 p.add_option('--re', '--reviewers',
97 type='string', action='append', dest='reviewers', 97 type='string', action='append', dest='reviewers',
98 help='Request reviews from these people.') 98 help='Request reviews from these people.')
@@ -273,15 +273,19 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
273 have_errors = True 273 have_errors = True
274 274
275 print >>sys.stderr, '' 275 print >>sys.stderr, ''
276 print >>sys.stderr, '--------------------------------------------' 276 print >>sys.stderr, '----------------------------------------------------------------------'
277 277
278 if have_errors: 278 if have_errors:
279 for branch in todo: 279 for branch in todo:
280 if not branch.uploaded: 280 if not branch.uploaded:
281 print >>sys.stderr, '[FAILED] %-15s %-15s (%s)' % ( 281 if len(str(branch.error)) <= 30:
282 fmt = ' (%s)'
283 else:
284 fmt = '\n (%s)'
285 print >>sys.stderr, ('[FAILED] %-15s %-15s' + fmt) % (
282 branch.project.relpath + '/', \ 286 branch.project.relpath + '/', \
283 branch.name, \ 287 branch.name, \
284 branch.error) 288 str(branch.error))
285 print >>sys.stderr, '' 289 print >>sys.stderr, ''
286 290
287 for branch in todo: 291 for branch in todo: