Chromium Code Reviews| Index: gcl.py |
| =================================================================== |
| --- gcl.py (revision 136864) |
| +++ gcl.py (working copy) |
| @@ -825,9 +825,23 @@ |
| 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) |
| - |
| + # Replace -m with -t and --message with --title, but make sure to |
| + # preserve anything after the -m/--message. |
| + found_deprecated_arg = [False] |
| + def replace_message(a): |
| + if a.startswith('-m'): |
| + found_deprecated_arg[0] = True |
| + return '-t' + a[2:] |
| + elif a.startswith('--message'): |
| + found_deprecated_arg[0] = True |
| + return '--title' + a[9:] |
| + return a |
| + args = map(replace_message, args) |
| + if found_deprecated_arg[0]: |
| + print >> sys.stderr, ( |
| + '\nWARNING: Use -t or --title to set the title of the patchset.\n' + |
|
M-A Ruel
2012/05/14 16:13:24
no need for +
Roger Tawa OOO till Jul 10th
2012/05/14 18:17:02
Done.
|
| + 'In the near future, -m or --message will send a message instead.\n' + |
| + 'See http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/d8422e01be3ddc51# for details.\n') |
|
M-A Ruel
2012/05/14 16:13:24
Maybe make a http://goo.gl url?
Roger Tawa OOO till Jul 10th
2012/05/14 18:17:02
Done.
|
| upload_arg = ["upload.py", "-y"] |
| upload_arg.append("--server=%s" % change_info.rietveld) |