| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 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 sys | 8 import sys |
| 8 | 9 |
| 9 try: | 10 try: |
| 10 import breakpad | 11 import breakpad |
| 11 except ImportError: | 12 except ImportError: |
| 12 pass | 13 pass |
| 13 | 14 |
| 14 from scm import GIT | 15 from scm import GIT |
| 15 import trychange | 16 import trychange |
| 16 | 17 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 | 29 |
| 29 | 30 |
| 30 if __name__ == '__main__': | 31 if __name__ == '__main__': |
| 31 args = sys.argv[:] | 32 args = sys.argv[:] |
| 32 patchset = GetRietveldPatchsetNumber() | 33 patchset = GetRietveldPatchsetNumber() |
| 33 if patchset: | 34 if patchset: |
| 34 args.extend([ | 35 args.extend([ |
| 35 '--issue', GetRietveldIssueNumber(), | 36 '--issue', GetRietveldIssueNumber(), |
| 36 '--patchset', patchset, | 37 '--patchset', patchset, |
| 37 ]) | 38 ]) |
| 39 # Hack around a limitation in logging. |
| 40 logging.getLogger().handlers = [] |
| 38 sys.exit(trychange.TryChange(args, [], False, 'git-try')) | 41 sys.exit(trychange.TryChange(args, [], False, 'git-try')) |
| OLD | NEW |