From d2e78ff63110a41a0424faebb8bd14607c5d1a0d Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Mon, 11 Jan 2010 20:37:19 +0000 Subject: [PATCH] Allow gclient revert to remove symlinks Previously links weren't caught at the appropriate point and instead passed to RemoveDirectory which then rejected them because they were links. Patch contributed by Nasser Review URL: http://codereview.chromium.org/541012 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35936 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_scm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gclient_scm.py b/gclient_scm.py index 93f69974b..9aa0f0609 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -485,7 +485,7 @@ class SVNWrapper(SCMWrapper, scm.SVN): try: if not os.path.exists(file_path): pass - elif os.path.isfile(file_path): + elif os.path.isfile(file_path) or os.path.islink(file_path): logging.info('os.remove(%s)' % file_path) os.remove(file_path) elif os.path.isdir(file_path):