Commit 8f9c69f5 authored by bradnelson@google.com's avatar bradnelson@google.com

Fixing errors in gclient on a gclient revert --nohooks on windows.

BUG=None
TEST=None
TBR=maruel

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26425 0039d316-1c4b-4281-b951-d872f2087c98
parent 5f3eee3b
......@@ -183,7 +183,7 @@ class SCMWrapper(object):
"try again." % (url, checkout_path))
# Ok delete it.
print("\n_____ switching %s to a new checkout" % self.relpath)
RemoveDirectory(checkout_path)
gclient_utils.RemoveDirectory(checkout_path)
# We need to checkout.
command = ['checkout', url, checkout_path]
if revision:
......@@ -232,7 +232,7 @@ class SCMWrapper(object):
try:
os.remove(file_path)
except EnvironmentError:
RemoveDirectory(file_path)
gclient_utils.RemoveDirectory(file_path)
if file[0][0] != '?':
# For any other status, svn revert will work.
......
......@@ -13,6 +13,7 @@
# limitations under the License.
import os
import stat
import subprocess
import sys
import xml.dom.minidom
......
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