# HG changeset patch # User Adrian Buehlmann # Date 1301221327 -7200 # Node ID f6e5035dc81aee894099aecea9473191992ad247 # Parent a2f0fdb1e488da6148f8169594c12f2c0bc0ce9a windows: use win32.unlink in unlinkpath() os.unlink fails to remove files with READONLY attribute diff -r a2f0fdb1e488 -r f6e5035dc81a mercurial/windows.py --- 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))