[BUG] "hg clone -r branchname" incorrectly sets working branch

Leo Razoumov slonik.az at gmail.com
Wed Jun 18 07:05:01 CDT 2008


I have an incoming HG repo with several branches, let say 'default' and 'foo'.

When I explicitly request branch 'foo' during clone operation

hg clone -r foo  incoming  ws

my Mercurial-1.0.1 creates a clone and checks out the latest 'default'
branch changeset for its working directory. I was expecting the latest
'foo' branch changeset since this is what I requested.

Below I attached a shell script that reproduces this bug.

--Leo--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HGtmp.sh
Type: application/x-sh
Size: 660 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20080618/4acd3c46/attachment.sh 


More information about the Mercurial mailing list