Revision: 17749
Author: [email protected]
Date: Thu Nov 14 14:49:07 2013 UTC
Log: Add ChangeLog presubmit check.
LOG=
BUG=
[email protected]
Review URL: https://codereview.chromium.org/61733023
http://code.google.com/p/v8/source/detail?r=17749
Modified:
/branches/bleeding_edge/PRESUBMIT.py
=======================================
--- /branches/bleeding_edge/PRESUBMIT.py Tue Sep 24 13:35:45 2013 UTC
+++ /branches/bleeding_edge/PRESUBMIT.py Thu Nov 14 14:49:07 2013 UTC
@@ -69,15 +69,28 @@
return input_api.environ.get('PRESUBMIT_TREE_CHECK') == 'skip'
+def _CheckChangeLogFlag(input_api, output_api):
+ """Checks usage of LOG= flag in the commit message."""
+ results = []
+ if input_api.change.BUG and not 'LOG' in input_api.change.tags:
+ results.append(output_api.PresubmitError(
+ 'An issue reference (BUG=) requires a change log flag (LOG=). '
+ 'Use LOG=Y for including this commit message in the change log. '
+ 'Use LOG=N or leave blank otherwise.'))
+ return results
+
+
def CheckChangeOnUpload(input_api, output_api):
results = []
results.extend(_CommonChecks(input_api, output_api))
+ results.extend(_CheckChangeLogFlag(input_api, output_api))
return results
def CheckChangeOnCommit(input_api, output_api):
results = []
results.extend(_CommonChecks(input_api, output_api))
+ results.extend(_CheckChangeLogFlag(input_api, output_api))
results.extend(input_api.canned_checks.CheckChangeHasDescription(
input_api, output_api))
if not _SkipTreeCheck(input_api, output_api):
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.