0

If I have one file which is used by two projects, then at the moment I keep a copy in each of the relevant repositories. If I update one of them, is it possible to automagically synchronise the other? Softlinks wouldn't work (at least not for Mercurial).

Edit: just found this. Is that a duplicate/is that the best way to fix my problem?

Community
  • 1
  • 1
craq
  • 1,441
  • 2
  • 20
  • 39

1 Answers1

-1

Maybe you could consider hardlinking your file in one of the two repositories. This can be a bit dangerous, though, so I wouldn't really recommend it. Maybe just check it out if you can't find anything else.

EDIT: It you're looking to synchronize a directory, this won't work. Hardlinking directories is just a bad idea, and is impossible (for good reason) on many systems.

Dex
  • 176
  • 5