Write the command to execute in the error message so people don't have to learn how svn works.

TEST=none
BUG=none

Review URL: http://codereview.chromium.org/126050

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@18273 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 16 years ago
parent 8d5c9a5a52
commit ccde1c92e6

@ -194,10 +194,12 @@ def CheckChangeSvnEolStyle(input_api, output_api, source_file_filter=None):
if bad:
if input_api.is_committing:
return [output_api.PresubmitError(
"Fix these files with svn svn:eol-style=LF", items=bad)]
"Run `svn pset svn:eol-style LF <item>` on these files:",
items=bad)]
else:
return [output_api.PresubmitNotifyResult(
"Fix these files with svn svn:eol-style=LF", items=bad)]
"Run `svn pset svn:eol-style LF <item>` on these files:",
items=bad)]
return []

Loading…
Cancel
Save