Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 1473:7d66ce9895fa
make readconfig take a filename instead of a file pointer as argument
catch parse error while reading a config file
add a testcase for parse error
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 27 Oct 2005 13:40:56 -0700 |
parents | 0847c45ffee6 |
children | d3566eda2bcb |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Oct 27 13:31:12 2005 -0700 +++ b/mercurial/localrepo.py Thu Oct 27 13:40:56 2005 -0700 @@ -43,7 +43,7 @@ self.dirstate = dirstate.dirstate(self.opener, ui, self.root) try: - self.ui.readconfig(self.opener("hgrc")) + self.ui.readconfig(os.path.join(self.path, "hgrc")) except IOError: pass def hook(self, name, **args):