mercurial/util.py
changeset 8631 a87c41f65aff
parent 8614 573734e7e6d0
child 8778 c5f36402daad
equal deleted inserted replaced
8630:8ff65f7e3273 8631:a87c41f65aff
   510                       os.path.isdir(os.path.join(curpath, '.hg'))):
   510                       os.path.isdir(os.path.join(curpath, '.hg'))):
   511                     raise Abort(_('path %r is inside repo %r') %
   511                     raise Abort(_('path %r is inside repo %r') %
   512                                 (path, prefix))
   512                                 (path, prefix))
   513         parts.pop()
   513         parts.pop()
   514         prefixes = []
   514         prefixes = []
   515         for n in range(len(parts)):
   515         while parts:
   516             prefix = os.sep.join(parts)
   516             prefix = os.sep.join(parts)
   517             if prefix in self.auditeddir:
   517             if prefix in self.auditeddir:
   518                 break
   518                 break
   519             check(prefix)
   519             check(prefix)
   520             prefixes.append(prefix)
   520             prefixes.append(prefix)