##// 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 713 os.path.isdir(os.path.join(curpath, '.hg'))):
714 714 raise Abort(_('path %r is inside repo %r') %
715 715 (path, prefix))
716
716 parts.pop()
717 717 prefixes = []
718 for c in strutil.rfindall(normpath, os.sep):
719 prefix = normpath[:c]
718 for n in range(len(parts)):
719 prefix = os.sep.join(parts)
720 720 if prefix in self.auditeddir:
721 721 break
722 722 check(prefix)
723 723 prefixes.append(prefix)
724 parts.pop()
724 725
725 726 self.audited.add(path)
726 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