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 <nasser@codeaurora>

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
experimental/szager/collated-output
maruel@chromium.org 15 years ago
parent 346737cf13
commit d2e78ff631

@ -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):

Loading…
Cancel
Save