Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: git_cl_hooks.py

Issue 5998008: Import from git_cl instead of git_cl_repo.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698