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

Side by Side Diff: gcl.py

Issue 2408001: More examples at the end of trychange.py help and move the -R flag to the right group (Closed)
Patch Set: Fix typo, add epilog to git-try Created 10 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | git-try » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """\ 6 """\
7 Wrapper script around Rietveld's upload.py that simplifies working with groups 7 Wrapper script around Rietveld's upload.py that simplifies working with groups
8 of files. 8 of files.
9 """ 9 """
10 10
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 trychange_args.extend(['--name', change_info.name]) 864 trychange_args.extend(['--name', change_info.name])
865 if change_info.issue: 865 if change_info.issue:
866 trychange_args.extend(["--issue", str(change_info.issue)]) 866 trychange_args.extend(["--issue", str(change_info.issue)])
867 if change_info.patchset: 867 if change_info.patchset:
868 trychange_args.extend(["--patchset", str(change_info.patchset)]) 868 trychange_args.extend(["--patchset", str(change_info.patchset)])
869 trychange_args.extend(args) 869 trychange_args.extend(args)
870 file_list = change_info.GetFileNames() 870 file_list = change_info.GetFileNames()
871 else: 871 else:
872 trychange_args.extend(args) 872 trychange_args.extend(args)
873 file_list = None 873 file_list = None
874 return trychange.TryChange(trychange_args, 874 return trychange.TryChange(
875 file_list=file_list, 875 trychange_args,
876 swallow_exception=swallow_exception, 876 file_list=file_list,
877 prog='gcl try') 877 swallow_exception=swallow_exception,
878 prog='gcl try',
879 extra_epilog='\n'
880 'When called from gcl, use the format gcl try <change_name>.\n')
878 881
879 882
880 @need_change_and_args 883 @need_change_and_args
881 @attrs(usage='[--no_presubmit]') 884 @attrs(usage='[--no_presubmit]')
882 def CMDcommit(change_info, args): 885 def CMDcommit(change_info, args):
883 """Commits the changelist to the repository.""" 886 """Commits the changelist to the repository."""
884 if not change_info.GetFiles(): 887 if not change_info.GetFiles():
885 print "Nothing to commit, changelist is empty." 888 print "Nothing to commit, changelist is empty."
886 return 1 889 return 1
887 if not OptionallyDoPresubmitChecks(change_info, True, args): 890 if not OptionallyDoPresubmitChecks(change_info, True, args):
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 argv = ['help'] 1313 argv = ['help']
1311 command = Command(argv[0]) 1314 command = Command(argv[0])
1312 if command: 1315 if command:
1313 return command(argv[1:]) 1316 return command(argv[1:])
1314 # Unknown command, try to pass that to svn 1317 # Unknown command, try to pass that to svn
1315 return CMDpassthru(argv) 1318 return CMDpassthru(argv)
1316 1319
1317 1320
1318 if __name__ == "__main__": 1321 if __name__ == "__main__":
1319 sys.exit(main(sys.argv[1:])) 1322 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | git-try » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698