Is it possible to synchronize local/remote repositories without any interaction (i.e. by script)?

Chris Green cl at isbd.net
Thu Aug 16 11:42:44 UTC 2018


On Thu, Aug 16, 2018 at 11:23:24AM +1000, Cameron Simpson wrote:
> On 15Aug2018 18:59, Bryan Murdock <bmurdock at gmail.com> wrote:
> > You can just use rsync or get fancy and use something like syncthing. I've
> > done both with mercurial repos and it works great.  Your history *and*
> > working copy stay synced, you never have to commit just for the purpose of
> > synchronizing files.
> 
> Provided the far end never does any commits of its own...
> 
If using syncthing you can change things anywhere in any order
treating the hg repository as if it was on a shared disk drive.

The only problem might be with multiple users changing the same thing
in two places at the same time.

I find in practice that using syncthing works very well with me as the
only user, I just change things wherever I happen to be logged in at
the time and can commit from anywhere too.  It's very handy for files
that are common/shared between multiple systems.

-- 
Chris Green



More information about the Mercurial mailing list