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

Unified Diff: gcl.py

Issue 10384131: Fix gcl.py to handle new command line argument format of upload.py. gcl.py (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 8 years, 7 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: gcl.py
===================================================================
--- gcl.py (revision 136553)
+++ gcl.py (working copy)
@@ -825,6 +825,10 @@
if FilterFlag(args, "--send-mail"):
args.append("--send_mail")
+ # Replace -m or --message with -t.
+ args = map(lambda a: '-t' if (a == '-m' or a == '--message') else a, args)
+
+
upload_arg = ["upload.py", "-y"]
upload_arg.append("--server=%s" % change_info.rietveld)
@@ -842,7 +846,7 @@
# Uploading a new patchset.
upload_arg.append("--issue=%d" % change_info.issue)
- if not any(i.startswith('--message') or i.startswith('-m') for i in args):
+ if not any(i.startswith('--title') or i.startswith('-t') for i in args):
upload_arg.append('--title= ')
else:
# First time we upload.
« 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