##// END OF EJS Templates
Fix not to use os.sep directly....
Shun-ichi GOTO -
r5845:5924a11a default
parent child Browse files
Show More
@@ -713,14 +713,15 b' class path_auditor(object):'
713 os.path.isdir(os.path.join(curpath, '.hg'))):
713 os.path.isdir(os.path.join(curpath, '.hg'))):
714 raise Abort(_('path %r is inside repo %r') %
714 raise Abort(_('path %r is inside repo %r') %
715 (path, prefix))
715 (path, prefix))
716
716 parts.pop()
717 prefixes = []
717 prefixes = []
718 for c in strutil.rfindall(normpath, os.sep):
718 for n in range(len(parts)):
719 prefix = normpath[:c]
719 prefix = os.sep.join(parts)
720 if prefix in self.auditeddir:
720 if prefix in self.auditeddir:
721 break
721 break
722 check(prefix)
722 check(prefix)
723 prefixes.append(prefix)
723 prefixes.append(prefix)
724 parts.pop()
724
725
725 self.audited.add(path)
726 self.audited.add(path)
726 # only add prefixes to the cache after checking everything: we don't
727 # only add prefixes to the cache after checking everything: we don't
General Comments 0
You need to be logged in to leave comments. Login now