Merging different repos
Gerard Korsten
soonkia77 at gmail.com
Mon Oct 27 13:25:41 UTC 2008
On Mon, Oct 27, 2008 at 2:33 PM, Alessandro Dentella <sandro at e-den.it>wrote:
> Hi,
>
>
> If not which is the suggested way to go?
>
> Thanks
> sandro
> *:-)
>
Hg transplant can do it for you - sort of. It preserves the date. But it
doesn't use the date to determine where to put the changeset. It' just
places it on top of the last change set.
So if you combine two repo's:
The original repo will be at the bottom of the log, the transplanted repo at
the top.
You could build a combination repo from the various repo's by transplanting
the various changeset manually into the new repo one by one ((I guess you
could write a script to do it as well)) .
ie: Clone rev 0 from your oldest repo into a new repo. Then in this new
clone transplant the various changesets from the various repo's in date
order. You'll effectively be cherry picking the changes you want and in what
order they should appear.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081027/b9378352/attachment-0001.html>
More information about the Mercurial
mailing list