Ignored [defaults] section in local hgrc file

Mark A. Flacy mflacy at verizon.net
Wed Aug 1 02:44:43 CDT 2007


On 2007.07.31 12:43, Laurent Birtz wrote:
> Hello,
> 
> after searching the mailing list I have discovered that the [defaults]
> section in my per-project hgrc file is ignored. This behavior prevents  
> me
> from using the [default] section in my project hrgc file to specify a
> list of files to ignore during a commit. I need to do this to prevent
> myself from accidentally commiting modified versions of the config  
> files
> in the project. As a work-around I am modifying my global hgrc file,
> which is not great since I have several projects controlled by  
> Mercurial.
> 
> I would like to know the rationale behind the current behavior, and if  
> it
> is possible to change it. If not, adding a warning in the hgrc man page
> would be nice.

What if you change your [defaults] section to [DEFAULT]?  Assuming that  
Mercurial uses the ConfigParser module to parse the .hgrc file,  
[DEFAULT] is the correct name for the default section.


-- 
Mark A. Flacy



More information about the Mercurial mailing list