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

Side by Side Diff: git-try

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 | « gcl.py ('k') | trychange.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/python 1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2010 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 """Wrapper for trychange.py for git checkout.""" 5 """Wrapper for trychange.py for git checkout."""
6 6
7 import logging 7 import logging
8 import sys 8 import sys
9 9
10 import breakpad 10 import breakpad
(...skipping 26 matching lines...) Expand all
37 args.extend([ 37 args.extend([
38 '--issue', GetRietveldIssueNumber(), 38 '--issue', GetRietveldIssueNumber(),
39 '--patchset', patchset, 39 '--patchset', patchset,
40 ]) 40 ])
41 else: 41 else:
42 rietveld_url = GetRietveldServerUrl() 42 rietveld_url = GetRietveldServerUrl()
43 if rietveld_url: 43 if rietveld_url:
44 args.extend(['--rietveld_url', GetRietveldServerUrl()]) 44 args.extend(['--rietveld_url', GetRietveldServerUrl()])
45 # Hack around a limitation in logging. 45 # Hack around a limitation in logging.
46 logging.getLogger().handlers = [] 46 logging.getLogger().handlers = []
47 sys.exit(trychange.TryChange(args, [], False, 'git-try')) 47 sys.exit(trychange.TryChange(
48 args, file_list=[], swallow_exception=False,
49 prog='git-try',
50 extra_epilog='\n'
51 'git-try will diff against your tracked branch and will '
52 'detect your rietveld\n'
53 'code review if you are using git-cl\n'))
OLDNEW
« no previous file with comments | « gcl.py ('k') | trychange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698