Commit 25548ab6 authored by rogerta@chromium.org's avatar rogerta@chromium.org

Fix gcl.py to handle new command line argument format of upload.py. gcl.py

converts -m and --message to -t.

BUG=None
TEST=When uploading a patch to rietveld, make sure no new message is added to
the CL.

Review URL: https://chromiumcodereview.appspot.com/10384131

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@136861 0039d316-1c4b-4281-b951-d872f2087c98
parent d528f8b1
......@@ -825,6 +825,10 @@ def CMDupload(change_info, args):
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 @@ def CMDupload(change_info, args):
# 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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment