[issue3263] Commandserver: New bookmark is not marked as active
Jan Sorensen
bugs at mercurial.selenic.com
Sun Feb 12 13:35:42 UTC 2012
New submission from Jan Sorensen <js at aragost.com>:
If you create a new bookmark, and then make a commit, the newly created bookmark is still referencing the old changeset. It should have
been moved to reference the new commit. It can be reproduced with the following test:
diff --git a/tests/test-commandserver.py b/tests/test-commandserver.py
--- a/tests/test-commandserver.py
+++ b/tests/test-commandserver.py
@@ -179,6 +179,16 @@
os.system('hg upd bm1 -q')
runcommand(server, ['bookmarks'])
+def bookmarks2(server):
+ # Create new active bookmark 'bm3'
+ runcommand(server, ['bookmarks', 'bm3'])
+ f = open('a', 'ab')
+ f.write('2')
+ f.close()
+ runcommand(server, ['commit', '-Amm'])
+ # bookmarks list bm1 as active, and bm3 still points to the previons changeset. This is bug
+ runcommand(server, ['bookmarks'])
+
def tagscache(server):
readchannel(server)
runcommand(server, ['id', '-t', '-r', '0'])
@@ -208,5 +218,6 @@
check(hookoutput)
check(outsidechanges)
check(bookmarks)
+ check(bookmarks2)
check(tagscache)
check(setphase)
----------
messages: 19054
nosy: idank, mg, nesneros
priority: bug
status: unread
title: Commandserver: New bookmark is not marked as active
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3263>
____________________________________________________
More information about the Mercurial-devel
mailing list