[issue1306] hg clone --rev should change branches if a rev on a named branch is given

Ben Hearsum mercurial-bugs at selenic.com
Mon Sep 22 11:06:43 CDT 2008


New submission from Ben Hearsum <bhearsum at gmail.com>:

When passing a rev that is on a named branch to 'hg clone --rev' hg will *not*
change branches to properly update to that rev. After the clone is completed
this leads to a confusing situation where you have the requested revision in
your local repository, but the working directory has been updated to the tip of
'default'. IMHO there should be at least a way (hg clone -C?) to get Mercurial
to switch branches with 'hg clone --rev'.

If that's undesired for some reason it should *at least* inform you that you're
not getting the revision you expected.

----------
messages: 7181
nosy: bhearsum, djc
priority: bug
status: unread
title: hg clone --rev should change branches if a rev on a named branch is given

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



More information about the Mercurial-devel mailing list