Keeping 2 disconnected sites in sync

Stefan Reichör stefan at xsteve.at
Wed Jun 21 02:03:06 CDT 2006


Michael Smith <smithm at netapps.com.au> writes:

> On Tue, 20 Jun 2006 22:23:51 +0100
> "Paul Moore" <p.f.moore at gmail.com> wrote:
>
>> A third option might be to use hg bundle and email bundles between the
>> sites. But I can't see how to do this, as I get the impression that hg
>> bundle needs to see the target repository in order to decide what
>> changesets to include. I might be able to do it with a "master" and a
>> "working" repository on each PC, but then I start getting lost in a
>> maze of repositories, so I suspect that will become unmanageable.
>
> This system actually works very well for me. At each site I have a
> script like this: (watch the wrap)

<snip>

> ...which creates a bundle and pushes to the reference repo. At the
> other end I run:
>

<snip>

>
> ...which looks for bundles, unpacks and deletes them. The case
> statements allow me to easily define other parallel projects.

It would be even nicer, if the hg bundle command could take two
revisions of the repository and create a bundle without the need for
the slave repository. Or at least that the bundle command administers
the slave repository.

This would allow to send binary patches also.
Another solution would be to extend hg export/import to support binary
files.


Stefan.



More information about the Mercurial mailing list