summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 0eefbff..ac8a719 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -428,7 +428,13 @@ def _CheckUnwantedDependencies(input_api, output_api):
'You added one or more #includes that violate checkdeps rules.',
error_descriptions))
if warning_descriptions:
- results.append(output_api.PresubmitPromptWarning(
+ if not input_api.is_committing:
+ warning_factory = output_api.PresubmitPromptWarning
+ else:
+ # We don't want to block use of the CQ when there is a warning
+ # of this kind, so we only show a message when committing.
+ warning_factory = output_api.PresubmitNotifyResult
+ results.append(warning_factory(
'You added one or more #includes of files that are temporarily\n'
'allowed but being removed. Can you avoid introducing the\n'
'#include? See relevant DEPS file(s) for details and contacts.',