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

Side by Side Diff: trychange.py

Issue 351025: Add missing 's' to options.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years, 1 month 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 | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 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 """Client-side script to send a try job to the try server. It communicates to 5 """Client-side script to send a try job to the try server. It communicates to
6 the try server by either writting to a svn repository or by directly connecting 6 the try server by either writting to a svn repository or by directly connecting
7 to the server by HTTP. 7 to the server by HTTP.
8 """ 8 """
9 9
10 10
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 585
586 if options.name is None: 586 if options.name is None:
587 if options.issue: 587 if options.issue:
588 patch_name = 'Issue %s' % options.issue 588 patch_name = 'Issue %s' % options.issue
589 else: 589 else:
590 options.name = 'Unnamed' 590 options.name = 'Unnamed'
591 print('Note: use --name NAME to change the try job name.') 591 print('Note: use --name NAME to change the try job name.')
592 if not options.email: 592 if not options.email:
593 print('Warning: try job email will be sent to %s@google.com or ' 593 print('Warning: try job email will be sent to %s@google.com or '
594 'something like that. Who knows? Set EMAIL_ADDRESS to override.' 594 'something like that. Who knows? Set EMAIL_ADDRESS to override.'
595 % option.user) 595 % options.user)
596 596
597 # Send the patch. 597 # Send the patch.
598 options.send_patch(options) 598 options.send_patch(options)
599 print 'Patch \'%s\' sent to try server: %s' % (options.name, 599 print 'Patch \'%s\' sent to try server: %s' % (options.name,
600 ', '.join(options.bot)) 600 ', '.join(options.bot))
601 except (InvalidScript, NoTryServerAccess), e: 601 except (InvalidScript, NoTryServerAccess), e:
602 if swallow_exception: 602 if swallow_exception:
603 return 1 603 return 1
604 print e 604 print e
605 return 1 605 return 1
606 return 0 606 return 0
607 607
608 608
609 if __name__ == "__main__": 609 if __name__ == "__main__":
610 sys.exit(TryChange(None, None, False)) 610 sys.exit(TryChange(None, None, False))
OLDNEW
« 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