Are hgrc files inside a mercurial repo tracked by the repo itself?

We have an hgrc file containing parameters that should be global for all members of our development team. When I make changes to my hgrc file, I don't seem to be able to pass those changes to anyone else who is cloning the repo.

Is there a way to keep these configs global for any repo user?

Give up on yourself!

+4
source share
1 answer

$ REPO / .hg / hgrc is not tracked by Mercurial. This is for security reasons.

You can copy the template and create a project policy for which you need to set several parameters: $ REPO / .hg / hgrc or add auxiliary script objects for assembly to deploy the template up to $ REPO / .hg .

I recommend using precommit hooks on a central server so that all changes are good . Take a look

Please note that some Mercurial files are considered special, for example $ REPO / .hgignore or .hgeol for the EOL plugin. You can commit these files, so they are easily distributed in the development team.

+3
source

Source: https://habr.com/ru/post/1394670/


All Articles