how to share a file between 2 repositories? Hardlinks?
Uwe Brauer
oub at mat.ucm.es
Thu Oct 9 18:25:15 UTC 2025
>>> "AB" == Arne Babenhauserheide <arne_bab at web.de> writes:
> "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.
I am deeply sorry 😉
> The clean way would be a bibtex repo with a named branch "bibtex" which
> holds the bibtex file.
The point is the bibtex repo had only the default branch, I could use
evolve to rename the branch. Right now I only added the bibtex branch
and one new change set
> To get bibtex initially, you simply hg pull --force from the bibtex repo
> and then hg merge bibtex into default.
I run a test, cloned my latex repository and then in this cloned one.
hg pull /home/user/HGs/tex/bib/ --force -b bibtex
--8<---------------cut here---------------start------------->8---
pulling from /home/oub/ALLES/HGs/tex/bib/
searching for changes
warning: repository is unrelated
adding changesets
adding manifests
adding file changes
abort: empty revision on one side of range
warning: outgoing hook exited with status 255
added 399 changesets with 529 changes to 22 files (+1 heads)
32 new obsolescence markers
new changesets e3d1de58c858:9b7a5fbc6b01
(run 'hg heads' to see heads, 'hg merge' to merge)
abort: empty revision on one side of range
warning: changegroup.diffstat hook exited with status 255
--8<---------------cut here---------------end--------------->8---
So that would add quite a bit of changesets to my latex repository.
Regards
Uwe Brauer
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel.
Stop the war in Gaza, guarantee humanitarian aid, and bring the hostages back.
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5684 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20251009/91313f82/attachment-0001.p7s>
More information about the Mercurial
mailing list