changeset 13777:f6e5035dc81a

windows: use win32.unlink in unlinkpath() os.unlink fails to remove files with READONLY attribute
author Adrian Buehlmann <adrian@cadifra.com>
date Sun, 27 Mar 2011 12:22:07 +0200
parents a2f0fdb1e488
children 46c3043253fb
files mercurial/windows.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/windows.py	Sun Mar 27 01:47:58 2011 +0100
+++ b/mercurial/windows.py	Sun Mar 27 12:22:07 2011 +0200
@@ -286,7 +286,7 @@
 
 def unlinkpath(f):
     """unlink and remove the directory if it is empty"""
-    os.unlink(f)
+    unlink(f)
     # try removing directories that might now be empty
     try:
         _removedirs(os.path.dirname(f))