[Bug 4528] New: clone -u <branch> -r <cset> updates to branchpoint
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Wed Feb 4 18:28:13 UTC 2015
http://bz.selenic.com/show_bug.cgi?id=4528
Priority: normal
Bug ID: 4528
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: clone -u <branch> -r <cset> updates to branchpoint
Severity: bug
Classification: Unclassified
OS: Other
Reporter: danek.duvall at oracle.com
Hardware: PC
Status: UNCONFIRMED
Version: 3.2.3
Component: Mercurial
Product: Mercurial
With a repo built from the following DAG:
+2
@"branchA"+3
@default*4+1
if I then run
hg clone -r 3 -u branchA small smallchild
(where changeset 3 is the middle of the three changesets on branchA), then
smallchild will have the first two changesets on default, and the first two
changesets on branchA, as expected. However, the working directory parent will
be set to changeset 1 -- the last changeset on default. I would expect it to
be changeset 3, as per the -u argument, asking for branchA to be checked out
(where I'd expect the tipmost changeset).
I could understand if -r and -u referenced different branches (-r 6 -u branchA)
that it wouldn't know what to do, but that's not the case here (and trying that
doesn't even give a warning that it makes no sense).
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list