[issue3276] updating to the last active bookmark reactive it
Pierre-Yves David
bugs at mercurial.selenic.com
Fri Feb 17 18:38:34 UTC 2012
New submission from Pierre-Yves David <pierre-yves.david at logilab.fr>:
When you don't have any active bookmark. Updating to a revision that happen to
have a bookmark may enable this bookmark. This happen if the bookmark was the
last you had active.
The following updated test case:
diff --git a/tests/test-bookmarks.t b/tests/test-bookmarks.t
--- a/tests/test-bookmarks.t
+++ b/tests/test-bookmarks.t
@@ -342,10 +342,25 @@ create bundle with two heads
X2 1:925d80f479bb
Y 2:db815d6d32e6
* Z 3:125c9a1d6df6
x y 2:db815d6d32e6
+ $ hg up -C 1
+ 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
+ $ hg bookmarks
+ X2 1:925d80f479bb
+ Y 2:db815d6d32e6
+ Z 3:125c9a1d6df6
+ x y 2:db815d6d32e6
+ $ hg up 3
+ 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
+ $ hg bookmarks
+ X2 1:925d80f479bb
+ Y 2:db815d6d32e6
+ Z 3:125c9a1d6df6
+ x y 2:db815d6d32e6
+
test wrongly formated bookmark
$ echo '' >> .hg/bookmarks
$ hg bookmarks
X2 1:925d80f479bb
Fails as follow:
--- /home/pyves/src/mercurial-dev/tests/test-bookmarks.t
+++ /home/pyves/src/mercurial-dev/tests/test-bookmarks.t.err
@@ -356,7 +356,7 @@
$ hg bookmarks
X2 1:925d80f479bb
Y 2:db815d6d32e6
- Z 3:125c9a1d6df6
+ * Z 3:125c9a1d6df6
x y 2:db815d6d32e6
----------
messages: 19128
nosy: krbullock, marmoute
priority: bug
status: chatting
title: updating to the last active bookmark reactive it
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3276>
____________________________________________________
More information about the Mercurial-devel
mailing list