Is there a plan to suport hg clone -r ?

Thomas Arendsen Hein thomas at intevation.de
Thu Sep 1 01:52:46 CDT 2005


* Ling, Xiaofeng <xiaofeng.ling at intel.com> [20050901 08:50]:
> Thomas Arendsen Hein <> wrote:
> > * Xiaofeng Ling <xiaofeng.ling at intel.com> [20050901 06:54]:
> >> 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 init
> hg add *
> hg ci
> hg import /tmp/8.patch
> hg import /tmp/9.patch

Yes, but now look at the changeset hashes of both tips.

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/


More information about the Mercurial mailing list