diff tests/test-bookmarks-current.t @ 14188:9029b1a38c30

bookmarks: allow to create/move bookmark without making it current (issue2788) Adds a -i/--inactive flag to the bookmarks command to create or move a bookmark without making it the current one. This lets you use a bookmark like a shareable, movable 'tag' and less like a 'branch'. Thanks to Alexander Solovyov <alexander@solovyov.net> for most of the work of implementation, and Matt Mackall <mpm@selenic.com> for suggesting the option name.
author Kevin Bullock <kbullock@ringworld.org>
date Sat, 11 Dec 2010 18:08:55 +0100
parents 8ee4b00ddfd8
children 328422b0380d
line wrap: on
line diff
--- a/tests/test-bookmarks-current.t	Thu May 05 01:57:13 2011 +0200
+++ b/tests/test-bookmarks-current.t	Sat Dec 11 18:08:55 2010 +0100
@@ -99,3 +99,10 @@
 
   $ hg bookmark
    * Y                         0:719295282060
+
+set bookmark Z using -i
+
+  $ hg bookmark -r . -i Z
+  $ hg bookmarks
+   * Y                         0:719295282060
+     Z                         0:719295282060