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

Side by Side Diff: git-try

Issue 4360002: Largely reduce the number of pylint warnings and fix one typo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: address comments Created 10 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 | « gclient_utils.py ('k') | git_cl_hooks.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 # pylint: disable=W0611
11 11
12 import gclient_utils 12 import gclient_utils
13 from scm import GIT 13 from scm import GIT
14 import third_party.upload 14 import third_party.upload
15 import trychange 15 import trychange
16 16
17 17
18 def GetRietveldIssueNumber(): 18 def GetRietveldIssueNumber():
19 try: 19 try:
20 return GIT.Capture( 20 return GIT.Capture(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 sys.exit(trychange.TryChange( 56 sys.exit(trychange.TryChange(
57 args, file_list=[], swallow_exception=False, 57 args, file_list=[], swallow_exception=False,
58 prog='git-try', 58 prog='git-try',
59 extra_epilog='\n' 59 extra_epilog='\n'
60 'git-try will diff against your tracked branch and will ' 60 'git-try will diff against your tracked branch and will '
61 'detect your rietveld\n' 61 'detect your rietveld\n'
62 'code review if you are using git-cl\n')) 62 'code review if you are using git-cl\n'))
63 except third_party.upload.ClientLoginError, e: 63 except third_party.upload.ClientLoginError, e:
64 print('Got an exception while trying to log in to Rietveld.') 64 print('Got an exception while trying to log in to Rietveld.')
65 print(str(e)) 65 print(str(e))
OLDNEW
« no previous file with comments | « gclient_utils.py ('k') | git_cl_hooks.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698