opener: use %r in format string for abort
authorAdrian Buehlmann <adrian@cadifra.com>
Fri, 15 Apr 2011 16:15:28 +0200
changeset 13943 545091b12724
parent 13942 88f0e41d8802
child 13944 bc32bb0e909f
opener: use %r in format string for abort
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)