cmdutil: don't use repr on paths in pathauditor - it looks strange on windows
authorMads Kiilerich <mads@kiilerich.com>
Mon, 07 Nov 2011 02:49:00 +0100
changeset 15436 18f1bb70462e
parent 15435 493fffdc6398
child 15437 8f08b635cdce
cmdutil: don't use repr on paths in pathauditor - it looks strange on windows
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Mon Nov 07 02:44:04 2011 +0100
+++ b/mercurial/scmutil.py	Mon Nov 07 02:49:00 2011 +0100
@@ -98,7 +98,7 @@
                 if p in lparts[1:]:
                     pos = lparts.index(p)
                     base = os.path.join(*parts[:pos])
-                    raise util.Abort(_('path %r is inside nested repo %r')
+                    raise util.Abort(_("path '%s' is inside nested repo %r")
                                      % (path, base))
 
         parts.pop()
@@ -123,7 +123,7 @@
                 elif (stat.S_ISDIR(st.st_mode) and
                       os.path.isdir(os.path.join(curpath, '.hg'))):
                     if not self.callback or not self.callback(curpath):
-                        raise util.Abort(_('path %r is inside nested repo %r') %
+                        raise util.Abort(_("path '%s' is inside nested repo %r") %
                                          (path, prefix))
             prefixes.append(prefix)
             parts.pop()