[issue1885] update to default may update to a just created named branch
darios
bugs at mercurial.selenic.com
Mon Oct 26 12:52:44 UTC 2009
New submission from darios <darios at symbian.org>:
After creating a named branch (say "newbranch"), updating to the "default"
branch may update to "newbranch" instead of the most recent change among
unnamed branches.
For example if you run these commands:
mkdir sample1
cd sample1
echo hello > file.txt
hg init
hg add
hg commit -m "init"
echo hello1 > file.txt
hg commit -m "change1"
hg update -r0
echo hello2 > file.txt
hg commit -m "change2"
hg branch "branch2"
hg commit -m "created branch2"
Then you do:
hg update -r default
hg identify
you will obtain "change2" instead of the expected "change1"
----------
messages: 10834
nosy: darios
priority: bug
status: unread
title: update to default may update to a just created named branch
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1885>
____________________________________________________
More information about the Mercurial-devel
mailing list