OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/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 """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 # pylint: disable=W0611 |
| 11 |
10 from scm import GIT | 12 from scm import GIT |
11 import subprocess2 | 13 import subprocess2 |
12 import third_party.upload | 14 import third_party.upload |
13 import trychange | 15 import trychange |
14 import git_cl | 16 import git_cl |
15 | 17 |
16 | 18 |
17 def GetRietveldIssueNumber(): | 19 def GetRietveldIssueNumber(): |
18 try: | 20 try: |
19 return GIT.Capture( | 21 return GIT.Capture( |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 print(str(e)) | 69 print(str(e)) |
68 return 0 | 70 return 0 |
69 | 71 |
70 | 72 |
71 if __name__ == '__main__': | 73 if __name__ == '__main__': |
72 try: | 74 try: |
73 sys.exit(main(sys.argv[1:])) | 75 sys.exit(main(sys.argv[1:])) |
74 except KeyboardInterrupt: | 76 except KeyboardInterrupt: |
75 sys.stderr.write('interrupted\n') | 77 sys.stderr.write('interrupted\n') |
76 sys.exit(1) | 78 sys.exit(1) |
OLD | NEW |