# HG changeset patch # User Matt Mackall # Date 2010-06-05 04:04:31 # Node ID 037d910734dead7a9121a2875baa67c2459a5676 # Parent 543597fae51def232060d92292720e672026b1c6 error: fix up test-hgrc diff --git a/mercurial/config.py b/mercurial/config.py --- a/mercurial/config.py +++ b/mercurial/config.py @@ -103,10 +103,9 @@ class config(object): try: include(inc, remap=remap, sections=sections) except IOError, inst: - raise error.ParseError( - _("cannot include %s (%s)") - % (inc, inst.strerror), - msg, "%s:%s" % (src, line)) + raise error.ParseError(_("cannot include %s (%s)") + % (inc, inst.strerror), + "%s:%s" % (src, line)) continue if emptyre.match(l): continue diff --git a/mercurial/error.py b/mercurial/error.py --- a/mercurial/error.py +++ b/mercurial/error.py @@ -36,7 +36,7 @@ class Abort(Exception): class ConfigError(Abort): 'Exception raised when parsing config files' -class ParseError(Abort): +class ParseError(Exception): 'Exception raised when parsing config files (msg[, pos])' class RepoError(Exception): diff --git a/tests/test-hgrc.out b/tests/test-hgrc.out --- a/tests/test-hgrc.out +++ b/tests/test-hgrc.out @@ -1,4 +1,4 @@ -hg: config error at $HGRCPATH:1: 'invalid' +hg: parse error at $HGRCPATH:1: invalid updating to branch default 0 files updated, 0 files merged, 0 files removed, 0 files unresolved [paths] @@ -6,10 +6,10 @@ default = .../foo%bar default = .../foo%bar bundle.mainreporoot=.../foobar paths.default=.../foo%bar -hg: config error at $HGRCPATH:2: ' x = y' +hg: parse error at $HGRCPATH:2: x = y foo.bar=a\nb\nc\nde\nfg foo.baz=bif cb -hg: config error at $HGRCPATH:1: cannot include /path/to/nowhere/no-such-file (No such file or directory) +hg: parse error at $HGRCPATH:1: cannot include /path/to/nowhere/no-such-file (No such file or directory) % username expansion John Doe ui.username=$FAKEUSER