[issue2210] clone --udpaterev updates to tip instead

scott.tsai bugs at mercurial.selenic.com
Mon May 24 09:59:25 UTC 2010


New submission from scott.tsai <scottt.tw at gmail.com>:

hg clone --update REV doesn't update working dir to REV but head of branch 
'default' instead.

shell session to demonstrate the problem below:
$ hg version 
Mercurial Distributed SCM (version 1.5.2)
<.. snip ..>

$ hg init r0
$ cd r0
$ echo a >> a
$ hg commit --addremove -m 'add a'
adding a
$ echo a >> a
$ hg commit --addremove -m 'append a'
$ cd ..
$ hg clone --updaterev 0 r0 r1
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cd r1
$ hg parent
changeset:   1:08f3fa206347
tag:         tip
user:        Scott Tsai <scottt.tw at gmail.com>
date:        Mon May 24 17:52:25 2010 +0800
summary:     append a

----------
messages: 12656
nosy: scottt
priority: bug
status: unread
title: clone --udpaterev updates to tip instead

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2210>
____________________________________________________


More information about the Mercurial-devel mailing list