[issue260] support "serverless" remote repos

Matt Mackall mpm at selenic.com
Thu May 18 21:08:22 CDT 2006


On Thu, May 18, 2006 at 10:40:44PM +0000, Bryan O'Sullivan wrote:
> 
> New submission from Bryan O'Sullivan <bos at serpentine.com>:
> 
> John Dong, one of Canonical's kernel people (I think), would love us forever and
> a day if we could but clone, pull and push over sftp and rsync.

The sftp thing confuses me. I suppose there are setups that provide
sftp but no shell..

Rsync: well you can already rsync for several scenarios (like
publishing changes). It's even reasonably efficient. But others will
result in data loss, because you'd overwrite your local changes when
pulling in the remote ones.

We could in theory support something like this for pull:

a) clone entire repo to temporary clone
b) rsync from source to clone
c) local pull from clone
d) delete clone

Push would be the same, except we'd need to do the above pull steps,
push to the clone, then rsync back:

a) clone entire repo to temporary clone
b) rsync from dest to clone
c) local push to clone
d) rsync back to clone
e) delete clone

And then there are the locking/ordering issues.. Not insurmountable,
but a bit annoying.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list