comparison mercurial/dirstate.py @ 12164:1849b6147831

cmdutil: use repo.auditor when constructing match object This gives the repository control over which nested repository paths that should be allowed via the custom path auditor. Since paths into subrepositories are now allowed, dirstate.walk must now filter away more paths than before.
author Martin Geisler <mg@lazybytes.net>
date Fri, 03 Sep 2010 12:58:51 +0200
parents ca6cebd8734e
children 798d72f3621c
comparison
equal deleted inserted replaced
12163:505f64bb58af 12164:1849b6147831
496 dirignore = util.always # skip step 2 496 dirignore = util.always # skip step 2
497 elif match.files() and not match.anypats(): # match.match, no patterns 497 elif match.files() and not match.anypats(): # match.match, no patterns
498 skipstep3 = True 498 skipstep3 = True
499 499
500 files = set(match.files()) 500 files = set(match.files())
501 for s in subrepos:
502 files = [f for f in files if not f.startswith(s + "/")]
501 if not files or '.' in files: 503 if not files or '.' in files:
502 files = [''] 504 files = ['']
503 results = dict.fromkeys(subrepos) 505 results = dict.fromkeys(subrepos)
504 results['.hg'] = None 506 results['.hg'] = None
505 507