equal
deleted
inserted
replaced
504 |
504 |
505 def dirs(self): |
505 def dirs(self): |
506 return self._alldirs |
506 return self._alldirs |
507 |
507 |
508 def hasdir(self, dir): |
508 def hasdir(self, dir): |
509 return dir in self._alldirs |
509 topdir, subdir = _splittopdir(dir) |
|
510 if topdir: |
|
511 if topdir in self._dirs: |
|
512 return self._dirs[topdir].hasdir(subdir) |
|
513 return False |
|
514 return (dir + '/') in self._dirs |
510 |
515 |
511 def matches(self, match): |
516 def matches(self, match): |
512 '''generate a new manifest filtered by the match argument''' |
517 '''generate a new manifest filtered by the match argument''' |
513 if match.always(): |
518 if match.always(): |
514 return self.copy() |
519 return self.copy() |