comparison mercurial/windows.py @ 9591:012f1244cd4c

Merge with crew-stable
author Patrick Mezard <pmezard@gmail.com>
date Fri, 09 Oct 2009 00:29:39 +0200
parents 61e30f257c15 1f665246dab3
children 5ebeef7cc201
comparison
equal deleted inserted replaced
9546:4333b9744419 9591:012f1244cd4c
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)