# HG changeset patch # User Adrian Buehlmann # Date 1302876928 -7200 # Node ID 545091b1272415adc57139824656020e56ebb50c # Parent 88f0e41d8802d204cacc4b31edc16ad2b5cb4875 opener: use %r in format string for abort diff -r 88f0e41d8802 -r 545091b12724 mercurial/util.py --- a/mercurial/util.py Sat Apr 16 01:05:56 2011 +0900 +++ b/mercurial/util.py Fri Apr 15 16:15:28 2011 +0200 @@ -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)