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

Side by Side Diff: git_cl_hooks.py

Issue 444009: Minimalist breakpad implementation. (Closed)
Patch Set: Default to opt-out Created 11 years 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
« no previous file with comments | « gclient.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) 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
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)
OLDNEW
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698