##// END OF EJS Templates
windows: fix unlink() not dropping empty tree (issue1861)
Patrick Mezard -
r9572:1f665246 default
parent child Browse files
Show More
@@ -258,7 +258,7 b' def _removedirs(name):'
258 258 head, tail = os.path.split(head)
259 259 while head and tail:
260 260 try:
261 if osutil.listdir(name):
261 if osutil.listdir(head):
262 262 return
263 263 os.rmdir(head)
264 264 except:
@@ -108,3 +108,12 b' remove -A test'
108 108 echo % dir, options -Af
109 109 rm test/bar
110 110 remove -Af test
111
112 echo 'test remove dropping empty trees (issue1861)'
113 mkdir -p issue1861/b/c
114 echo x > issue1861/x
115 echo y > issue1861/b/c/y
116 hg ci -Am add
117 hg rm issue1861/b
118 hg ci -m remove
119 ls issue1861
@@ -111,3 +111,8 b' R test/foo'
111 111 ./foo
112 112 ./test/foo
113 113 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
114 test remove dropping empty trees (issue1861)
115 adding issue1861/b/c/y
116 adding issue1861/x
117 removing issue1861/b/c/y
118 x
General Comments 0
You need to be logged in to leave comments. Login now