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( |
|
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now