diff mercurial/windows.py @ 9572:1f665246dab3

windows: fix unlink() not dropping empty tree (issue1861)
author Patrick Mezard <pmezard@gmail.com>
date Thu, 08 Oct 2009 23:32:36 +0200
parents bc6b0fef9495
children c156bf947e26 012f1244cd4c
line wrap: on
line diff
--- a/mercurial/windows.py	Wed Oct 07 18:52:01 2009 +0200
+++ b/mercurial/windows.py	Thu Oct 08 23:32:36 2009 +0200
@@ -258,7 +258,7 @@
         head, tail = os.path.split(head)
     while head and tail:
         try:
-            if osutil.listdir(name):
+            if osutil.listdir(head):
                 return
             os.rmdir(head)
         except: