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