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