Commit e08149a2 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix revert.py.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15977 0039d316-1c4b-4281-b951-d872f2087c98
parent 0329e67b
......@@ -134,7 +134,7 @@ def Revert(revisions, force=False, commit=True, send_email=True, message=None,
print ""
# Make sure these files are unmodified with svn status.
status = gcl.GetSVNStatus(files)
status = gclient.CaptureSVNStatus(files)
if status:
if force:
# TODO(maruel): Use the tool to correctly revert '?' files.
......@@ -178,6 +178,7 @@ def Revert(revisions, force=False, commit=True, send_email=True, message=None,
print 'svn up . -N failed in %s/.' % root
return retcode
# TODO(maruel): BUG WITH ONLY ONE FILE.
command = ["svn", "merge", "-c", revisions_string_rev]
command.extend(file_list)
(output, retcode) = gcl.RunShellWithReturnCode(command, print_output=True)
......
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