# HG changeset patch # User Adrian Buehlmann # Date 1302876928 -7200 # Node ID 545091b1272415adc57139824656020e56ebb50c # Parent 88f0e41d8802d204cacc4b31edc16ad2b5cb4875 opener: use %r in format string for abort diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -917,7 +917,7 @@ def __call__(self, path, mode="r", text=False, atomictemp=False): r = checkosfilename(path) if r: - raise Abort("%s: %s" % (r, path)) + raise Abort("%s: %r" % (r, path)) self.auditor(path) f = os.path.join(self.base, path)