Size: 1580
Comment:
|
Size: 1579
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
''Author: Martin Geisler'' | ''Author: MartinGeisler'' |
projrc
This extension is not distributed with Mercurial.
Author: MartinGeisler
Download site: http://bitbucket.org/aragost/projrc
Overview
This extension makes Mercurial parse .hg/projrc for additional configuration settings. The file is transferred unconditionally on clone and on pull (but never on push).
This can be used to implement the second part of the SubrepoRemappingPlan.
Configuration
Configure your .hgrc to enable the extension by adding following lines:
[extensions] projrc = path/to/projrc/projrc.py
Load Order
The settings in the .hg/projrc file are meant to be used as additional system settings, which means that the extension tries hard to load them in this order:
System configuration files (/etc/mercurial/hgrc, C:\mercurial\mercurial.ini and friends)
Project specific configuration (.hg/projrc)
User configuration files ($HOME/.hgrc, %HOME%\.hgrc, and %HOME%\mercurial.ini)
Repository specific configuration (.hg/hgrc)
This is so that users can disable extensions loaded in the .hg/projrc file.
Caveats
While you can enable extensions in the .hg/projrc file, you cannot disable extensions with it. This is because Mercurial enables the extensions loaded from the normal configuration files before projrc gets a chance to loads the .hg/projrc file.