[PATCH 02 of 19] cmdutil: don't use repr on paths in pathauditor - it looks strange on windows

Mads Kiilerich mads at kiilerich.com
Sun Nov 6 20:40:52 CST 2011


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1320630540 -3600
# Node ID cb8d4e1d4a2a2a874215d5b8cd144d171230e1e8
# Parent  dc5748cc3a52758789396401907403d64783e56c
cmdutil: don't use repr on paths in pathauditor - it looks strange on windows

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -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()


More information about the Mercurial-devel mailing list