how to share a file between 2 repositories? Hardlinks?

Dr. Arne Babenhauserheide arne_bab at web.de
Wed Oct 8 22:11:32 UTC 2025


"Dr. Arne Babenhauserheide" <arne_bab at web.de> writes:

> An option could be to use a common bibtex repository, always commit the
> changes to the bibtex file individually in the work repository and
> export+import those changes to the other repository.

That’s actually far too complex. Feels like my brain got poisoned by the
dozens of git clutches at work.

The clean way would be a bibtex repo with a named branch "bibtex" which
holds the bibtex file.

To get bibtex initially, you simply hg pull --force from the bibtex repo
and then hg merge bibtex into default.

To get changes back into the bibtex repo, just hg pull from the bibtex
repo, hg graft the commit onto the bibtex branch and hg push -b bibtex
(only push the bibtex branch).

(⇒ adapt the commit hook to do that)

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1125 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20251009/8a6fec69/attachment-0001.sig>


More information about the Mercurial mailing list