test-bookmarks.t: check that bookmark "default" is not automatically checked out stable
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 26 Oct 2012 13:09:55 +0200
branchstable
changeset 17868 04755508f8ed
parent 17867 c9339efed653
child 17869 c79b404b99ae
test-bookmarks.t: check that bookmark "default" is not automatically checked out This verifies that c9339efed653 fixes the problem originally reported in issue3677.
tests/test-bookmarks.t
--- a/tests/test-bookmarks.t	Fri Oct 26 12:36:15 2012 +0200
+++ b/tests/test-bookmarks.t	Fri Oct 26 13:09:55 2012 +0200
@@ -394,6 +394,22 @@
   $ hg bookmark -d @
   $ hg bookmark -d a@
 
+test clone with a bookmark named "default" (issue3677)
+
+  $ hg bookmark -r 1 -f -i default
+  $ hg clone . cloned-bookmark-default
+  updating to branch default
+  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg -R cloned-bookmark-default bookmarks
+     X2                        1:925d80f479bb
+     Y                         2:db815d6d32e6
+     Z                         2:db815d6d32e6
+     default                   1:925d80f479bb
+     x  y                      2:db815d6d32e6
+  $ hg -R cloned-bookmark-default parents -q
+  2:db815d6d32e6
+  $ hg bookmark -d default
+
 test clone with a specific revision
 
   $ hg clone -r 925d80 . cloned-bookmarks-rev