How do I configure Mercurial to use environment variables in mercurial.ini

Posted by Coda on Stack Overflow See other posts from Stack Overflow or by Coda
Published on 2010-03-08T04:40:15Z Indexed on 2010/04/01 23:53 UTC
Read the original article Hit count: 795

How can I modify the mercurial.ini file to include an environment variable such as %userprofile%.

Specific situation:

I am learning to use Mercurial. I have modified the [ui] section of Mercurial.ini (in my home path) to include:

ignore = c:\users\user\.hgignore

Where user is my username literal. The .hgignore file includes filters that that ignore the filenames correctly at commit time. But how can I alter it from being the a literal user to an environment variable $user?

© Stack Overflow or respective owner

Related posts about mercurial

Related posts about environment