diff mercurial/util.py @ 13910:93452579df9e

audit: improve nested repo message
author Matt Mackall <mpm@selenic.com>
date Thu, 07 Apr 2011 14:43:19 -0500
parents 31eb145b50b6
children 98ee3dd5bab4
line wrap: on
line diff
--- a/mercurial/util.py	Thu Apr 07 17:16:17 2011 +0300
+++ b/mercurial/util.py	Thu Apr 07 14:43:19 2011 -0500
@@ -530,7 +530,8 @@
                 if p in lparts[1:]:
                     pos = lparts.index(p)
                     base = os.path.join(*parts[:pos])
-                    raise Abort(_('path %r is inside repo %r') % (path, base))
+                    raise Abort(_('path %r is inside nested repo %r')
+                                % (path, base))
         def check(prefix):
             curpath = os.path.join(self.root, prefix)
             try:
@@ -547,7 +548,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 Abort(_('path %r is inside repo %r') %
+                        raise Abort(_('path %r is inside nested repo %r') %
                                     (path, prefix))
         parts.pop()
         prefixes = []