changeset 16742:973671fc0804

bookmarks: test that bare update forwards active bookmark
author Kevin Bullock <kbullock@ringworld.org>
date Sat, 05 May 2012 15:12:26 -0500
parents 77c9a78e31dd
children 38caf405d010
files tests/test-bookmarks-current.t
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bookmarks-current.t	Sun May 13 14:26:26 2012 +0100
+++ b/tests/test-bookmarks-current.t	Sat May 05 15:12:26 2012 -0500
@@ -126,6 +126,23 @@
      X                         0:719295282060
      Z                         0:719295282060
 
+bare update moves the active bookmark forward
+
+  $ echo a > a
+  $ hg ci -Am1
+  adding a
+  $ hg update X
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  $ hg bookmarks
+   * X                         0:719295282060
+     Z                         0:719295282060
+  $ hg update
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  updating bookmark X
+  $ hg bookmarks
+   * X                         1:cc586d725fbe
+     Z                         0:719295282060
+
 test deleting .hg/bookmarks.current when explicitly updating
 to a revision