equal
deleted
inserted
replaced
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 |