Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: git_cl.py

Issue 2343363003: Add ability to set topic during "git cl upload" (Closed)
Patch Set: Initial upload Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 9f9f346c4b3dea20959234b1ab066c072fa8448f..1b016d46137da6b67efc7bdfdf52dac0ea0e9c8c 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2632,6 +2632,11 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase):
if options.private:
refspec_opts.append('draft')
+ if options.topic:
+ # Documentation on Gerrit topics is here:
+ # https://gerrit-review.googlesource.com/Documentation/user-upload.html#topic
+ refspec_opts.append('topic=%s' % options.topic)
+
refspec_suffix = ''
if refspec_opts:
refspec_suffix = '%' + ','.join(refspec_opts)
@@ -3932,6 +3937,8 @@ def CMDupload(parser, args):
parser.add_option('--no-squash', action='store_true',
help='Don\'t squash multiple commits into one ' +
'(Gerrit only)')
+ parser.add_option('--topic', default=None,
+ help='Topic to specify when uploading (Gerrit only)')
parser.add_option('--email', default=None,
help='email address to use to connect to Rietveld')
parser.add_option('--tbr-owners', dest='tbr_owners', action='store_true',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698