mercurial/windows.py
changeset 9576 c156bf947e26
parent 9549 8b8920209317
parent 9572 1f665246dab3
child 9594 f0c5c59d878d
equal deleted inserted replaced
9571:7e03423def3c 9576:c156bf947e26
   265     head, tail = os.path.split(name)
   265     head, tail = os.path.split(name)
   266     if not tail:
   266     if not tail:
   267         head, tail = os.path.split(head)
   267         head, tail = os.path.split(head)
   268     while head and tail:
   268     while head and tail:
   269         try:
   269         try:
   270             if osutil.listdir(name):
   270             if osutil.listdir(head):
   271                 return
   271                 return
   272             os.rmdir(head)
   272             os.rmdir(head)
   273         except:
   273         except:
   274             break
   274             break
   275         head, tail = os.path.split(head)
   275         head, tail = os.path.split(head)