Variable interpolation in hgrc

Matt Mackall mpm at selenic.com
Wed May 13 00:07:03 CDT 2009


On Tue, May 12, 2009 at 09:57:44PM -0700, Kyle Altendorf wrote:
> In my hgrc I would like to do something like the following:
> 
> [ui]
> ignore = %(REPOROOT)s\hglocal\hgignore.txt
> 
> The key part of that being the reference to the root of the
> repository.  Simply leaving out everything before 'hglocal' makes the
> reference relative to the cwd from which hg is run.  In my searching
> on this topic I have discovered extensions for managing such
> functionality in controlled files and even some references to syntax
> like %(repo)s:
> 
> http://www.selenic.com/mercurial/bts/issue166
> 
> but no clarification as to whether or not such 'special' variables as
> home, repo or prefix were ever actually created.  Any pointers?

Variable interpolation was an undocumented feature that will be gone
in 1.3.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list