comparison 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
comparison
equal deleted inserted replaced
1950:5f581f337b05 1951:696230e52e4d
16 self.overlay = {} 16 self.overlay = {}
17 if parentui is None: 17 if parentui is None:
18 # this is the parent of all ui children 18 # this is the parent of all ui children
19 self.parentui = None 19 self.parentui = None
20 self.cdata = ConfigParser.SafeConfigParser() 20 self.cdata = ConfigParser.SafeConfigParser()
21 self.readconfig(util.rcpath) 21 self.readconfig(util.rcpath())
22 22
23 self.quiet = self.configbool("ui", "quiet") 23 self.quiet = self.configbool("ui", "quiet")
24 self.verbose = self.configbool("ui", "verbose") 24 self.verbose = self.configbool("ui", "verbose")
25 self.debugflag = self.configbool("ui", "debug") 25 self.debugflag = self.configbool("ui", "debug")
26 self.interactive = self.configbool("ui", "interactive", True) 26 self.interactive = self.configbool("ui", "interactive", True)