Chromium Code Reviews| Index: presubmit_support.py |
| diff --git a/presubmit_support.py b/presubmit_support.py |
| index a4ae07824d68a97ea3e2235f37f65c7367b8d32d..4b38e88fdcee26f6720f1c387e5120e4fd90e6f8 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): |
| + """Propagate a line of text back to the caller.""" |
|
M-A Ruel
2011/03/08 19:58:32
Propagates
|
| + 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): |