how to recover a complete repo from a bundle?

Giovanni Gherdovich g.gherdovich at gmail.com
Thu Aug 8 21:09:42 UTC 2013


Hi all,

here a little mercurial puzzle I could not solve yet:

you have a repo bundle, which is not a "complete repo"
since a few csets miss their parents,
and your goal is to "restore the original repo" ---> get all missing
parents in the bundle.

The point is that I don't know how to ask the bundle "What are your heads?".
If I knew how to do that, I could sort it out via pulling from a related
repo and
then doing some `hg clone -r <rev> <repo>` and `hg pull` dance.

Consider this picture: http://i.imgur.com/jugbiKl.jpg .
You have a bundle (the pink csets) and a related repo.
You pull the bundle from the related repo.

You see a new head appearing in the repo (F),
so you might think that `hg clone -r F <repo>` would do the trick,
but you're missing D, that was one head of the bundle.

how to recover a complete repo from a bundle?

Cheers,
GGhh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130808/7118ebd7/attachment-0002.html>


More information about the Mercurial mailing list