named branches are really confusing
Neal Becker
ndbecker2 at gmail.com
Fri Dec 21 10:58:08 CST 2007
In my repo I have:
hg branches
pi4 333:8b803d69d900
default 324:7ad94909abfe (inactive)
nosplit 179:1fb87f703baf (inactive)
hg id
8b803d69d900+ (pi4) tip
Now I clone it, using hg clone with no options.
The new clone:
hg branches
pi4 333:8b803d69d900
default 324:7ad94909abfe (inactive)
nosplit 179:1fb87f703baf (inactive)
hg id
7ad94909abfe
I find this really confusing, and a real invitation to error. I had
forgotten about the branches, and I expected the clone to be, well, a
clone. Surprise, surpise!
Might I suggest that either:
1) A clone will by default be on the same branch as the repo it was cloned
form, or
2) Some kind of warning about this?
More information about the Mercurial-devel
mailing list