##// END OF EJS Templates
cmdutil: don't use repr on paths in pathauditor - it looks strange on windows
Mads Kiilerich -
r15436:18f1bb70 default
parent child Browse files
Show More
@@ -98,7 +98,7 b' class pathauditor(object):'
98 98 if p in lparts[1:]:
99 99 pos = lparts.index(p)
100 100 base = os.path.join(*parts[:pos])
101 raise util.Abort(_('path %r is inside nested repo %r')
101 raise util.Abort(_("path '%s' is inside nested repo %r")
102 102 % (path, base))
103 103
104 104 parts.pop()
@@ -123,7 +123,7 b' class pathauditor(object):'
123 123 elif (stat.S_ISDIR(st.st_mode) and
124 124 os.path.isdir(os.path.join(curpath, '.hg'))):
125 125 if not self.callback or not self.callback(curpath):
126 raise util.Abort(_('path %r is inside nested repo %r') %
126 raise util.Abort(_("path '%s' is inside nested repo %r") %
127 127 (path, prefix))
128 128 prefixes.append(prefix)
129 129 parts.pop()
General Comments 0
You need to be logged in to leave comments. Login now