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