tests/test-bookmarks.t
branchstable
changeset 19111 6439d78e14fb
parent 19109 26c51e87e807
child 19112 23f785b38af3
--- a/tests/test-bookmarks.t	Wed May 01 15:34:45 2013 -0500
+++ b/tests/test-bookmarks.t	Tue Apr 30 21:12:49 2013 -0500
@@ -611,3 +611,19 @@
      Z@1                       1:925d80f479bb
      four                      3:9ba5f110a0b3
      should-end-on-two         2:db815d6d32e6
+
+test clearing only a single divergent bookmark across branches
+
+  $ hg book foo -r 1
+  $ hg book foo@1 -r 0
+  $ hg book foo@2 -r 2
+  $ hg book foo@3 -r 3
+  $ hg book foo -r foo@3
+  $ hg book
+     Z                         3:9ba5f110a0b3
+     Z@1                       1:925d80f479bb
+   * foo                       3:9ba5f110a0b3
+     foo@1                     0:f7b1eb17ad24
+     foo@2                     2:db815d6d32e6
+     four                      3:9ba5f110a0b3
+     should-end-on-two         2:db815d6d32e6