Mercurial.ini additional location

Adrian Klaver adrian.klaver at aklaver.com
Wed Jul 9 22:00:54 UTC 2014


On 07/08/2014 10:26 AM, Tim Messick wrote:
> Greetings!
> I'm attempting to customize a lab environment for Mercurial and am
> running into a snag with the mercurial.ini file.  I'm essentially trying
> to add an additional location for the mercurial.ini folder; that
> additional location would be on a network drive "H:".  Is there any way
> to accomplish this?

Would %include work?

See below for particulars:

http://www.selenic.com/mercurial/hgrc.5.html

"A line of the form %include file will include file into the current 
configuration file. The inclusion is recursive, which means that 
included files can include other files. Filenames are relative to the 
configuration file in which the %include directive is found. Environment 
variables and ~user constructs are expanded in file. This lets you do 
something like:

%include ~/.hgrc.d/$HOST.rc

to include a different configuration file on each computer you use."

> Many thanks.
> Tim
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>


-- 
Adrian Klaver
adrian.klaver at aklaver.com



More information about the Mercurial mailing list