| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import re | 6 import re |
| 7 import subprocess | 7 import subprocess |
| 8 import sys | 8 import sys |
| 9 | 9 |
| 10 import breakpad |
| 11 |
| 10 import presubmit_support | 12 import presubmit_support |
| 11 import scm | 13 import scm |
| 12 | 14 |
| 13 def Backquote(cmd, cwd=None): | 15 def Backquote(cmd, cwd=None): |
| 14 """Like running `cmd` in a shell script.""" | 16 """Like running `cmd` in a shell script.""" |
| 15 return subprocess.Popen(cmd, | 17 return subprocess.Popen(cmd, |
| 16 cwd=cwd, | 18 cwd=cwd, |
| 17 stdout=subprocess.PIPE).communicate()[0].strip() | 19 stdout=subprocess.PIPE).communicate()[0].strip() |
| 18 | 20 |
| 19 | 21 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 if presubmit_support.DoPresubmitChecks(options.change, | 56 if presubmit_support.DoPresubmitChecks(options.change, |
| 55 options.commit, | 57 options.commit, |
| 56 options.verbose, | 58 options.verbose, |
| 57 sys.stdout, | 59 sys.stdout, |
| 58 sys.stdin, | 60 sys.stdin, |
| 59 options.default_presubmit, | 61 options.default_presubmit, |
| 60 options.may_prompt): | 62 options.may_prompt): |
| 61 sys.exit(0) | 63 sys.exit(0) |
| 62 else: | 64 else: |
| 63 sys.exit(1) | 65 sys.exit(1) |
| OLD | NEW |