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

Side by Side Diff: git_cl.py

Issue 10963013: Do not enforce HEAD when a revision is not specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years, 3 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 | rietveld.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) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 # Copyright (C) 2008 Evan Martin <martine@danga.com> 6 # Copyright (C) 2008 Evan Martin <martine@danga.com>
7 7
8 """A git-command for integrating reviews on Rietveld.""" 8 """A git-command for integrating reviews on Rietveld."""
9 9
10 import json 10 import json
(...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 (b, forced_tests) for b, t in builders_and_tests.iteritems() 1591 (b, forced_tests) for b, t in builders_and_tests.iteritems()
1592 if t != ['compile']) 1592 if t != ['compile'])
1593 1593
1594 patchset = cl.GetPatchset() 1594 patchset = cl.GetPatchset()
1595 if not cl.GetPatchset(): 1595 if not cl.GetPatchset():
1596 patchset = cl.GetMostRecentPatchset(cl.GetIssue()) 1596 patchset = cl.GetMostRecentPatchset(cl.GetIssue())
1597 1597
1598 cl.RpcServer().trigger_try_jobs( 1598 cl.RpcServer().trigger_try_jobs(
1599 cl.GetIssue(), patchset, options.name, options.clobber, options.revision, 1599 cl.GetIssue(), patchset, options.name, options.clobber, options.revision,
1600 builders_and_tests) 1600 builders_and_tests)
1601 print('Tried jobs on:')
1602 length = max(len(builder) for builder in builders_and_tests)
1603 for builder in sorted(builders_and_tests):
1604 print ' %*s: %s' % (length, builder, ','.join(builders_and_tests[builder]))
1601 return 0 1605 return 0
1602 1606
1603 1607
1604 @usage('[new upstream branch]') 1608 @usage('[new upstream branch]')
1605 def CMDupstream(parser, args): 1609 def CMDupstream(parser, args):
1606 """prints or sets the name of the upstream branch, if any""" 1610 """prints or sets the name of the upstream branch, if any"""
1607 _, args = parser.parse_args(args) 1611 _, args = parser.parse_args(args)
1608 if len(args) > 1: 1612 if len(args) > 1:
1609 parser.error('Unrecognized args: %s' % ' '.join(args)) 1613 parser.error('Unrecognized args: %s' % ' '.join(args))
1610 return 0 1614 return 0
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))) 1708 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)))
1705 1709
1706 # Not a known command. Default to help. 1710 # Not a known command. Default to help.
1707 GenUsage(parser, 'help') 1711 GenUsage(parser, 'help')
1708 return CMDhelp(parser, argv) 1712 return CMDhelp(parser, argv)
1709 1713
1710 1714
1711 if __name__ == '__main__': 1715 if __name__ == '__main__':
1712 fix_encoding.fix_encoding() 1716 fix_encoding.fix_encoding()
1713 sys.exit(main(sys.argv[1:])) 1717 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | rietveld.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698