BUG: hg clone --rev

Leo Razoumov slonik.az at gmail.com
Wed Jun 18 16:11:01 CDT 2008


Mercurial version: 1.0.1
Platform: Linux x86 Ubuntu 7.04

My repository has several branches and the tip of repository is *not*
on the default branch. When I try to specify explicitly revision that
I want to checkout like

hg clone --rev=1  src  dest

I am still getting the default branch in my working directory
different from the revision I requested. I have to do explicit "hg upd
1" to get the right working dir.

I attached below a shell script that demonstrates the problem.

--Leo--

P.S. Earlier today I  reported similar bug with named branches. It
turns out that is a bigger problem and it effects regular revisions
and tags in addition to branches.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HGtmp2.sh
Type: application/x-sh
Size: 610 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20080618/46c2c6fb/attachment.sh 


More information about the Mercurial mailing list