keyword: versioning my homedir and ~/.hgrc

Christian Ebert blacktrash at gmx.net
Mon Jul 6 13:00:41 CDT 2009


* Giorgos Keramidas on Monday, July 06, 2009 at 20:14:14 +0300
> On Mon, 06 Jul 2009 12:08:10 -0300, Wagner Bruna <wagner.bruna+mercurial at gmail.com> wrote:
>>> (...)
>>> I can't get keywords to expand in my `~/.hgrc'
>>> file.  By editing keyword.py to remove '.hg*' from the 'exc' key, or by
>>> setting the 'exc' list to include only '.hgtags' this is fixed:
>>> (...)
>> 
>> As a workaround, maybe you could turn .hgrc into a symlink to some not
>> excluded filename?
> 
> That's a "hack" to work-around a policy decision that keyword.py is
> making for me.  Not exactly perfect, but not the end of the world
> either.  Now that I know it's not inherently dangerous and will not
> cause demons to fly out of my nose, I can patch it locally and move on :)

Excluding .hg fails:

abort: path contains illegal component: .hg

That's the config parser's policy, I guess.

I actually wanted to propose a patch that just exludes .hgtags
and .hg to hear what others think, but it doesn't seem that easy.

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html


More information about the Mercurial-devel mailing list