A Generic Cloud Repository–“Egg of Columbus” solution

Martin Geisler martin at geisler.net
Sun Nov 17 22:32:54 UTC 2013


Pietro Moras <studio-pm at hotmail.com> writes:

> As I don't accept to be confined within the limited
> set of web-storages as listed on the “Mercurial Hosting” page of
> the http://mercurial.selenic.com
> site [see], I'm envisioning the following “Egg of Columbus”-style
> solution. 
>  – I'll use a web-storage of my choice, simply to
> there upload the entire Mercurial Repository as created and managed
> locally. Sort of “release” action.  
>  – From there, any one of my correspondents would
> down-load (not “clone”, simply down-load) such Repository. And
> then work on it in very Mercurial “distributed” fashion. 
>  – Then I'll certainly have a “merge” problem.
> Never mind:  I'm sure I'll find out how to face it.

It's not difficult at all. You let your correspondents upload their
version of the repository to their preferred cloud storage solution.

When you want to pull from them, you download their repository to your
machine and run

  hg pull /path/to/my/coworkers/repository

From within your clone. Very easy and it would work just fine.

The not so fine part is that you would have to re-download your
coworkers' repositories from their cloud storage -- unless of course the
cloud storage has some sort of rsync-like functionality built in.

What you've invented here is collaboration between parties that don't
have direct access to each others repositories. That's possible with any
DVCS, including Mercurial.

A more sophisticated scheme might be to let the correspondents publish
bundles with their changes -- so you don't need to download everything
when you want to "pull" from them. The 'hg bundle' command can help you
there. In the end you end up with a different way of pulling changes
From one repository to another -- a more cumbersome way compared to
setting up hgweb on a central server, but nevertheless a working way.

-- 
Martin Geisler

http://careers.stackoverflow.com/mg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20131117/a0b3b53a/attachment.asc>


More information about the Mercurial mailing list