OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 subprocess | 6 import subprocess |
7 import sys | 7 import sys |
8 | 8 |
9 import breakpad # pylint: disable=W0611 | 9 import breakpad # pylint: disable=W0611 |
10 | 10 |
11 from git_cl_repo import git_cl | 11 from git_cl import git_cl |
12 from git_cl_repo import upload | 12 from git_cl import upload |
13 | 13 |
14 import presubmit_support | 14 import presubmit_support |
15 import scm | 15 import scm |
16 import watchlists | 16 import watchlists |
17 | 17 |
18 # Really ugly hack to quiet upload.py | 18 # Really ugly hack to quiet upload.py |
19 upload.verbosity = 0 | 19 upload.verbosity = 0 |
20 | 20 |
21 def Backquote(cmd, cwd=None): | 21 def Backquote(cmd, cwd=None): |
22 """Like running `cmd` in a shell script.""" | 22 """Like running `cmd` in a shell script.""" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 if presubmit_support.DoPresubmitChecks(options.change, | 81 if presubmit_support.DoPresubmitChecks(options.change, |
82 options.commit, | 82 options.commit, |
83 options.verbose, | 83 options.verbose, |
84 sys.stdout, | 84 sys.stdout, |
85 sys.stdin, | 85 sys.stdin, |
86 options.default_presubmit, | 86 options.default_presubmit, |
87 options.may_prompt): | 87 options.may_prompt): |
88 sys.exit(0) | 88 sys.exit(0) |
89 else: | 89 else: |
90 sys.exit(1) | 90 sys.exit(1) |
OLD | NEW |