Is there a plan to suport hg clone -r ?
xiaofeng.ling at intel.com
Thu Sep 1 01:47:04 CDT 2005
Thomas Arendsen Hein <> wrote:
> * Xiaofeng Ling <xiaofeng.ling at intel.com> [20050901 06:54]:
>> I don't know whether it is difficult to implement?
>> or is it possbile based on the current repository struct?
> It is planned and possible. As Bryan said, there is something similar
> in 'mq' which can chomp revisions.
>> a more enhanced feature maybe clone from A revision and to B
>> revision. So we can save the time to clone from remote.
> That may be (too) complicated. Even if this works, you'll lose the
> annotation information for everything that wasn't modified after A.
My thoughs is if there are 10 changesets, 0-9.
If we want to create a repository only include 7,8,9.
then we need to merge 0-7 to one changeset, and add 8,9.
so in the new repository, 0 is a changeset include all the change of 0-7,
1,2 are the original 8.9.
the decription before 7 will lost, but 8,9 are keep.
to do this manually:
hg export 8 >/tmp/8.patch
hg export 9 >/tmp/9.patch
hg co -C 7
rm -rf .hg
hg add *
hg import /tmp/8.patch
hg import /tmp/9.patch
More information about the Mercurial