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

Side by Side Diff: commit_queue.py

Issue 144163002: Added support for private projects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/commit-queue
Patch Set: Style fix Created 6 years, 10 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 | « no previous file | projects.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Commit queue executable. 5 """Commit queue executable.
6 6
7 Reuse Rietveld and the Chromium Try Server to process and automatically commit 7 Reuse Rietveld and the Chromium Try Server to process and automatically commit
8 patches. 8 patches.
9 """ 9 """
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 maxBytes= 10*1024*1024, 121 maxBytes= 10*1024*1024,
122 backupCount=50) 122 backupCount=50)
123 logging_rotating_file.setLevel(logging.DEBUG) 123 logging_rotating_file.setLevel(logging.DEBUG)
124 logging_rotating_file.setFormatter(logging.Formatter( 124 logging_rotating_file.setFormatter(logging.Formatter(
125 '%(asctime)s %(levelname)-8s %(module)15s(%(lineno)4d): %(message)s')) 125 '%(asctime)s %(levelname)-8s %(module)15s(%(lineno)4d): %(message)s'))
126 logging.getLogger().addHandler(logging_rotating_file) 126 logging.getLogger().addHandler(logging_rotating_file)
127 127
128 128
129 class SignalInterrupt(Exception): 129 class SignalInterrupt(Exception):
130 """Exception that indicates being interrupted by a caught signal.""" 130 """Exception that indicates being interrupted by a caught signal."""
131 131
132 def __init__(self, signal_set=None, *args, **kwargs): 132 def __init__(self, signal_set=None, *args, **kwargs):
133 super(SignalInterrupt, self).__init__(*args, **kwargs) 133 super(SignalInterrupt, self).__init__(*args, **kwargs)
134 self.signal_set = signal_set 134 self.signal_set = signal_set
135 135
136 136
137 def SaveDatabaseCopyForDebugging(db_path): 137 def SaveDatabaseCopyForDebugging(db_path):
138 """Saves database file for debugging. Returns name of the saved file.""" 138 """Saves database file for debugging. Returns name of the saved file."""
139 with tempfile.NamedTemporaryFile( 139 with tempfile.NamedTemporaryFile(
140 dir=os.path.dirname(db_path), 140 dir=os.path.dirname(db_path),
141 prefix='db.debug.', 141 prefix='db.debug.',
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 # CQ generally doesn't exit by itself, but if we ever get here, it looks 390 # CQ generally doesn't exit by itself, but if we ever get here, it looks
391 # like a clean shutdown so remove the landmine file. 391 # like a clean shutdown so remove the landmine file.
392 # TODO(phajdan.jr): Do we ever get here? 392 # TODO(phajdan.jr): Do we ever get here?
393 os.remove(landmine_path) 393 os.remove(landmine_path)
394 return 0 394 return 0
395 395
396 396
397 if __name__ == '__main__': 397 if __name__ == '__main__':
398 fix_encoding.fix_encoding() 398 fix_encoding.fix_encoding()
399 sys.exit(main()) 399 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | projects.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698