diff -r 989cb39d1df4 -r 1f665246dab3 tests/test-remove --- a/tests/test-remove Wed Oct 07 18:52:01 2009 +0200 +++ b/tests/test-remove Thu Oct 08 23:32:36 2009 +0200 @@ -108,3 +108,12 @@ echo % dir, options -Af rm test/bar remove -Af test + +echo 'test remove dropping empty trees (issue1861)' +mkdir -p issue1861/b/c +echo x > issue1861/x +echo y > issue1861/b/c/y +hg ci -Am add +hg rm issue1861/b +hg ci -m remove +ls issue1861