mercurial/cmdutil.py
changeset 12164 1849b6147831
parent 12085 6f833fc3ccab
child 12167 d2c5b0927c28
equal deleted inserted replaced
12163:505f64bb58af 12164:1849b6147831
   261 
   261 
   262 def match(repo, pats=[], opts={}, globbed=False, default='relpath'):
   262 def match(repo, pats=[], opts={}, globbed=False, default='relpath'):
   263     if not globbed and default == 'relpath':
   263     if not globbed and default == 'relpath':
   264         pats = expandpats(pats or [])
   264         pats = expandpats(pats or [])
   265     m = matchmod.match(repo.root, repo.getcwd(), pats,
   265     m = matchmod.match(repo.root, repo.getcwd(), pats,
   266                     opts.get('include'), opts.get('exclude'), default)
   266                        opts.get('include'), opts.get('exclude'), default,
       
   267                        auditor=repo.auditor)
   267     def badfn(f, msg):
   268     def badfn(f, msg):
   268         repo.ui.warn("%s: %s\n" % (m.rel(f), msg))
   269         repo.ui.warn("%s: %s\n" % (m.rel(f), msg))
   269     m.bad = badfn
   270     m.bad = badfn
   270     return m
   271     return m
   271 
   272