Comments
Patch
@@ -174,7 +174,7 @@
# parse error
# different user, different group
not trusting file .hg/hgrc from untrusted user abc, group def
-ignored: ('foo', '.hg/hgrc:1')
+ignored .hg/hgrc:1: foo
# same user, same group
hg: parse error at .hg/hgrc:1: foo
@@ -469,7 +469,9 @@
except error.ParseError as inst:
if trusted:
raise
- self.warn(_(b'ignored: %s\n') % stringutil.forcebytestr(inst))
+ self.warn(
+ _(b'ignored %s: %s\n') % (inst.location, inst.message)
+ )
self._applyconfig(cfg, trusted, root)