equal
deleted
inserted
replaced
259 continue |
259 continue |
260 ret.append(p) |
260 ret.append(p) |
261 return ret |
261 return ret |
262 |
262 |
263 def match(repo, pats=[], opts={}, globbed=False, default='relpath'): |
263 def match(repo, pats=[], opts={}, globbed=False, default='relpath'): |
|
264 if pats == ("",): |
|
265 pats = [] |
264 if not globbed and default == 'relpath': |
266 if not globbed and default == 'relpath': |
265 pats = expandpats(pats or []) |
267 pats = expandpats(pats or []) |
266 m = matchmod.match(repo.root, repo.getcwd(), pats, |
268 m = matchmod.match(repo.root, repo.getcwd(), pats, |
267 opts.get('include'), opts.get('exclude'), default, |
269 opts.get('include'), opts.get('exclude'), default, |
268 auditor=repo.auditor) |
270 auditor=repo.auditor) |