mercurial/windows.py
changeset 9572 1f665246dab3
parent 9448 bc6b0fef9495
child 9576 c156bf947e26
child 9591 012f1244cd4c
--- 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: