On Thu, Jul 17, 2008 at 09:43:47AM +0100, Alan Burlison wrote:

> Another question: Is there any plan to make environment variables work 
> in .hgrc?  With teamware I have a setup that detects which side of the 
> Atlantic I am logged in on and/or if I am on/off SWAN and switches the 
> tools paths accordingly.  In .hgrc I have:
> 
> hgext.cdm=/ws/onnv-tools/onbld/lib/python/onbld/hgext/cdm.py
> 
> What I really want is:
> 
> hgext.cdm=${TOOL_ROOT}/onbld/lib/python/onbld/hgext/cdm.py

That isn't supported, but you can set HGRCPATH to a list of hgrc files.
from hg(1), it sounds like all of them are used, rather than just the first
one found, but I'd check to make sure.

Danek

Reply via email to