Change location of .hg: mercurial equivalent of --separate-git-dir

Marcin Kasperski Marcin.Kasperski at mekk.waw.pl
Fri Oct 12 10:02:20 UTC 2018


> My use case is allowing others to edit a working copy through Dropbox,
> Google Drive, etc. and then periodically being able to compare the
> state of that copy with my repository, optionally adding or committing
> their changes.
>
> I don't want to store the .hg folder in the shared repo for risk of
> data corruption (if people simultaneously commit in several places and
> the drive share auto-manages conflicts IN the .hg repo).

I'd consider solving it the other way:

   dropbox exclude add path/to/.hg

(and .hg is not synced anymore, but the files are, you are free to
commit as you like).

I suppose gdrive has sth similar.




More information about the Mercurial mailing list