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

Unified Diff: presubmit_support.py

Issue 6623074: add changes to presubmit needed for OWNERS support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: split out git-cl changes into a separate patch, add unit tests for presubmit changes Created 9 years, 9 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 | « presubmit_canned_checks.py ('k') | tests/presubmit_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: presubmit_support.py
diff --git a/presubmit_support.py b/presubmit_support.py
index a4ae07824d68a97ea3e2235f37f65c7367b8d32d..a62948d9fafbc39fdcfdb832fe6d7b01de73cb9f 100755
--- a/presubmit_support.py
+++ b/presubmit_support.py
@@ -154,6 +154,12 @@ class OutputApi(object):
"""Whether this presubmit result should result in a prompt warning."""
return False
+ class PresubmitAddText(PresubmitResult):
+ """Propagates a line of text back to the caller."""
+ def __init__(self, message, items=None, long_text=''):
+ super(OutputApi.PresubmitAddText, self).__init__("ADD: " + message,
+ items, long_text)
+
class PresubmitError(PresubmitResult):
"""A hard presubmit error."""
def IsFatal(self):
« no previous file with comments | « presubmit_canned_checks.py ('k') | tests/presubmit_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698