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

Side by Side Diff: gcl.py

Issue 7058054: Add --rietveld_XXX arguments to presubmit_support to the commit queue can use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | git_cl.py » ('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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 None) 1228 None)
1229 output = presubmit_support.DoPresubmitChecks( 1229 output = presubmit_support.DoPresubmitChecks(
1230 change=change, 1230 change=change,
1231 committing=committing, 1231 committing=committing,
1232 verbose=False, 1232 verbose=False,
1233 output_stream=sys.stdout, 1233 output_stream=sys.stdout,
1234 input_stream=sys.stdin, 1234 input_stream=sys.stdin,
1235 default_presubmit=root_presubmit, 1235 default_presubmit=root_presubmit,
1236 may_prompt=may_prompt, 1236 may_prompt=may_prompt,
1237 tbr=False, 1237 tbr=False,
1238 rietveld=change_info.RpcServer()) 1238 rietveld_obj=change_info.RpcServer())
1239 if not output.should_continue() and may_prompt: 1239 if not output.should_continue() and may_prompt:
1240 # TODO(dpranke): move into DoPresubmitChecks(), unify cmd line args. 1240 # TODO(dpranke): move into DoPresubmitChecks(), unify cmd line args.
1241 print "\nPresubmit errors, can't continue (use --no_presubmit to bypass)" 1241 print "\nPresubmit errors, can't continue (use --no_presubmit to bypass)"
1242 1242
1243 return output 1243 return output
1244 1244
1245 1245
1246 @no_args 1246 @no_args
1247 def CMDchanges(): 1247 def CMDchanges():
1248 """Lists all the changelists and their files.""" 1248 """Lists all the changelists and their files."""
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 raise 1461 raise
1462 print >> sys.stderr, ( 1462 print >> sys.stderr, (
1463 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' 1463 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith '
1464 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)) 1464 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))
1465 return 1 1465 return 1
1466 1466
1467 1467
1468 if __name__ == "__main__": 1468 if __name__ == "__main__":
1469 fix_encoding.fix_encoding() 1469 fix_encoding.fix_encoding()
1470 sys.exit(main(sys.argv[1:])) 1470 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | git_cl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698