tests/test-inhibit.t
changeset 1241 3625d006e81b
parent 1240 e1347ce2f954
child 1292 62229e7451f7
--- a/tests/test-inhibit.t	Wed Apr 01 13:51:21 2015 -0700
+++ b/tests/test-inhibit.t	Tue Mar 31 14:17:46 2015 -0700
@@ -261,9 +261,32 @@
   |/
   o  0:54ccbc537fc2 add cA
   
-  $ hg bookmark -d book1
-  $ hg prune --hidden 1::
-  3 changesets pruned
+
+Removing a bookmark with bookmark -D should prune the changes underneath
+that are not reachable from another bookmark or head
+
+  $ hg bookmark -r 1 book2
+  $ hg bookmark -D book1
+  bookmark 'book1' deleted
+  1 changesets pruned
+  $ hg log -G
+  @  9:55c73a90e4b4 add cJ
+  |
+  | o  7:18214586bf78 add cJ
+  |/
+  o  6:cf5c4f4554ce add cH
+  |
+  o  5:5419eb264a33 add cG
+  |
+  o  4:98065434e5c6 add cE
+  |
+  | o  1:02bcbc3f6e56 add cB
+  |/
+  o  0:54ccbc537fc2 add cA
+  
+  $ hg bookmark -D book2
+  bookmark 'book2' deleted
+  1 changesets pruned
   $ hg log -G
   @  9:55c73a90e4b4 add cJ
   |