Mercurial > hg-stable
diff mercurial/ui.py @ 1951:696230e52e4d
add HGRCPATH env var, list of places to look for hgrc files.
if set, override default hgrc search path.
if empty, only .hg/hgrc of current repo read.
for each element, if directory, all entries in directory with end in
".rc" are added to path. else, element is added to path.
big thing about this change is that user "~/.hgrc" and system hgrc not
longer breaks tests. run-tests makes HGRCPATH empty now.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Tue, 14 Mar 2006 21:40:46 -0800 |
parents | 36c6e4c3ff43 |
children | ae12a81549a7 |
line wrap: on
line diff
--- a/mercurial/ui.py Wed Mar 15 03:19:16 2006 +0100 +++ b/mercurial/ui.py Tue Mar 14 21:40:46 2006 -0800 @@ -18,7 +18,7 @@ # this is the parent of all ui children self.parentui = None self.cdata = ConfigParser.SafeConfigParser() - self.readconfig(util.rcpath) + self.readconfig(util.rcpath()) self.quiet = self.configbool("ui", "quiet") self.verbose = self.configbool("ui", "verbose")