| OLD | NEW |
| 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 Loading... |
| 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')) |
| OLD | NEW |