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

Unified Diff: PRESUBMIT.py

Issue 3533020: pause (Closed) Base URL: http://git.chromium.org/git/chromiumos-overlay.git
Patch Set: Created 10 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 34810a98ff37726fda9d2f79be23e2d78c86580e..0aa5a058561e820ce56d7515df8245afd6031906 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -65,6 +65,7 @@ def CheckChange(input_api, output_api, committing):
results = []
results += Check9999Updated(input_api, output_api,
source_file_filter=ebuilds)
+ results += CheckFoo(input_api, output_api)
return results
def CheckChangeOnUpload(input_api, output_api):
@@ -72,3 +73,15 @@ def CheckChangeOnUpload(input_api, output_api):
def CheckChangeOnCommit(input_api, output_api):
return CheckChange(input_api, output_api, True)
+
+def CheckFoo(input_api, output_api):
+ output = []
+ if input_api.change.patchset:
+ output.append(output_api.PresubmitPromptWarning(
+ 'Patchset is %d' % input_api.change.patchset))
+ if input_api.change.issue:
+ output.append(output_api.PresubmitPromptWarning(
+ 'Issue is %d' % input_api.change.patchset))
+
+ return output
+
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698