| 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 | 10 import breakpad # pylint: disable=W0611 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 sys.exit(trychange.TryChange( | 61 sys.exit(trychange.TryChange( |
| 62 args, change, swallow_exception=False, | 62 args, change, swallow_exception=False, |
| 63 prog='git try', | 63 prog='git try', |
| 64 extra_epilog='\n' | 64 extra_epilog='\n' |
| 65 'git try will diff against your tracked branch and will ' | 65 'git try will diff against your tracked branch and will ' |
| 66 'detect your rietveld\n' | 66 'detect your rietveld\n' |
| 67 'code review if you are using git-cl\n')) | 67 'code review if you are using git-cl\n')) |
| 68 except third_party.upload.ClientLoginError, e: | 68 except third_party.upload.ClientLoginError, e: |
| 69 print('Got an exception while trying to log in to Rietveld.') | 69 print('Got an exception while trying to log in to Rietveld.') |
| 70 print(str(e)) | 70 print(str(e)) |
| OLD | NEW |