Show More
@@ -258,7 +258,7 b' def _removedirs(name):' | |||||
258 | head, tail = os.path.split(head) |
|
258 | head, tail = os.path.split(head) | |
259 | while head and tail: |
|
259 | while head and tail: | |
260 | try: |
|
260 | try: | |
261 |
if osutil.listdir( |
|
261 | if osutil.listdir(head): | |
262 | return |
|
262 | return | |
263 | os.rmdir(head) |
|
263 | os.rmdir(head) | |
264 | except: |
|
264 | except: |
@@ -108,3 +108,12 b' remove -A test' | |||||
108 | echo % dir, options -Af |
|
108 | echo % dir, options -Af | |
109 | rm test/bar |
|
109 | rm test/bar | |
110 | remove -Af test |
|
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 | ./foo |
|
111 | ./foo | |
112 | ./test/foo |
|
112 | ./test/foo | |
113 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
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