[PATCH] Fix -r option in 'hg help clone'

timeless timeless at gmail.com
Thu Nov 19 02:58:38 CST 2009


faheem wrote:
> -           _('a changeset you would like to have after cloning')),

granted, this was wrong.

> +           _('a specific revision up to which you would like to clone')),

I'm uncertain this is great. I'm certainly not enamored by the
phrasing. Offhand "you would liked cloned" would be better assuming
the structure is correct. I think 'a specific revision up to which you
would like included in the clone' is perhaps more accurate, although
it's definitely too wordy.

I believe that 'include the graph from null to this revision in the
clone' is probably technically correct, although I don't believe we
speak about 'null' often in help. FWIW, I've recently started adding
more roots to my repositories, so I'm used to having rather disjoint
graphs (and certainly temporarily graphs with more than one classical
root).

hg init; touch 0; hg add; hg commit -m 0; hg up -r null; touch 1; hg
add; hg commit -m 1; touch 2; hg add; hg commit -m 2;
hg clone -r 0 -r 1 . x
requesting all changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 2 files (+1 heads)
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
timeless-mbp-2:c timeless$ hg log -R x
changeset:   1:ea7b61824e1a
tag:         tip
parent:      -1:000000000000
user:        timeless at mozdev.org
date:        Thu Nov 19 10:52:39 2009 +0200
summary:     1

changeset:   0:02cf48a34da4
user:        timeless at mozdev.org
date:        Thu Nov 19 10:52:29 2009 +0200
summary:     0


More information about the Mercurial-devel mailing list