##// 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 if p in lparts[1:]:
98 if p in lparts[1:]:
99 pos = lparts.index(p)
99 pos = lparts.index(p)
100 base = os.path.join(*parts[:pos])
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 % (path, base))
102 % (path, base))
103
103
104 parts.pop()
104 parts.pop()
@@ -123,7 +123,7 b' class pathauditor(object):'
123 elif (stat.S_ISDIR(st.st_mode) and
123 elif (stat.S_ISDIR(st.st_mode) and
124 os.path.isdir(os.path.join(curpath, '.hg'))):
124 os.path.isdir(os.path.join(curpath, '.hg'))):
125 if not self.callback or not self.callback(curpath):
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 (path, prefix))
127 (path, prefix))
128 prefixes.append(prefix)
128 prefixes.append(prefix)
129 parts.pop()
129 parts.pop()
General Comments 0
You need to be logged in to leave comments. Login now