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

Unified Diff: gcl.py

Issue 115616: Add repository root presubmit support. (Closed)
Patch Set: Fix diff to not include the prior patches. Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | presubmit_support.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcl.py
diff --git a/gcl.py b/gcl.py
index f2f976c2aace640781dcb94adcf0847c11311301..38899518c8df11e2cfeeb9ede2e2c15306ab87d9 100755
--- a/gcl.py
+++ b/gcl.py
@@ -607,7 +607,7 @@ Basic commands:
[--send_mail] [--no_try] [--no_presubmit]
Uploads the changelist to the server for review.
- gcl commit change_name [--force]
+ gcl commit change_name [--no_presubmit] [--force]
Commits the changelist to the repository.
gcl lint change_name
@@ -1023,11 +1023,13 @@ def DoPresubmitChecks(change_info, committing):
"""Imports presubmit, then calls presubmit.DoPresubmitChecks."""
# Need to import here to avoid circular dependency.
import presubmit_support
+ root_presubmit = GetCachedFile('PRESUBMIT.py', use_root=True)
result = presubmit_support.DoPresubmitChecks(change_info,
committing,
verbose=False,
output_stream=sys.stdout,
- input_stream=sys.stdin)
+ input_stream=sys.stdin,
+ default_presubmit=root_presubmit)
if not result:
print "\nPresubmit errors, can't continue (use --no_presubmit to bypass)"
return result
« no previous file with comments | « no previous file | presubmit_support.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698