[darcs-users] push --and-apply

Aggelos Economopoulos aoiko at cc.ece.ntua.gr
Wed Sep 17 21:38:45 UTC 2003


On Wednesday 17 September 2003 00:23, John Meacham wrote:
> On Tue, Sep 16, 2003 at 05:21:57AM +0300, Aggelos Economopoulos wrote:
> > I'm trying to find a way to easily exchange patches between repositories
> > in my home machine (which doesn't have a permanent connection to the
> > outside world) and repositories in an always-up remote host.
>
> I find unison to be invaluable for this and related things. it is like a
> generic rsync which automatically propegates changes in the correct
> direction. I use darcs for several local projects and develop on
> multiple machines and just use 'unison' to keep the repositories in sync
> with each other...

I don't see how this would work directly. If two repositories for the same 
project, each on a different machine, have recorded different patches, 
syncing them with unison would fail and you'ld have to merge with darcs 
anyway. What do you do in this scenario? Do you make sure you only run unison 
on repositories that you know can't present conflicts? Do you use a temporary 
repository on each side and make sure this pair is always in sync so you only 
have to deal with local merges (I think this should work but haven't given it 
much thought)?

Aggelos




More information about the darcs-users mailing list