Is there any way to easily share .hg/hgrc settings across all clones of a Mercurial repo?
e.g., I want to automatically enable the commitsigs extension for all clones of a repo (obviously, I'd include a copy of commitsigs.py in the repo). If I make other settings changes over time, I want them all to be easily pushed out to all clones.
I want to have:
hg cloneautomatically setup the.hg/hgrcof a new clone- all clones receive updated settings from the central repo (presumably on bitbucket.com)
If there is no built-in functionality for this, is the best practice to:
- have a
mandatory.hgrcin the root of the repo - use the ACL extension to restrict committers & pushers for
mandatory.hgrc have scripts in the root of the repo named something like
setup-hg.sh&setup-hg.bat(are there better, more standard names?) that add the following to.hg/hgrc(or that overwrite.hg/hgrc):%include ../mandatory.hgrcinclude a
README.mdcontaining instructions to runsetup-hg.shorsetup-hg.bat, depending on your platform