Commit 714acb11 authored by maruel@chromium.org's avatar maruel@chromium.org

Don't run presubmit scripts when reverting.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15485 0039d316-1c4b-4281-b951-d872f2087c98
parent a90bd594
......@@ -216,7 +216,7 @@ def Revert(revisions, force=False, commit=True, send_email=True, message=None,
description=description, files=files_status)
change_info.Save()
upload_args = ['-r', ",".join(reviewers)]
upload_args = ['--no_presubmit', '-r', ",".join(reviewers)]
if send_email:
upload_args.append('--send_mail')
if commit:
......@@ -225,7 +225,7 @@ def Revert(revisions, force=False, commit=True, send_email=True, message=None,
retcode = 0
if commit:
gcl.Commit(change_info, ['--force'])
gcl.Commit(change_info, ['--no_presubmit', '--force'])
# TODO(maruel): gclient sync (to leave the local checkout in an usable
# state)
retcode = gclient.Main(["gclient.py", "sync"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment