mercurial/cmdutil.py
branchstable
changeset 13534 4ec34de8bbb1
parent 13467 31aa2e5b0750
child 13769 8796fb6af67e
equal deleted inserted replaced
13531:67fbe566eff1 13534:4ec34de8bbb1
   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)