mercurial/revset.py
branchstable
changeset 37854 edb28a6d95b7
parent 37674 f83cb91b052e
child 38239 ead71b15efd5
equal deleted inserted replaced
37853:69381a28b456 37854:edb28a6d95b7
  2169 def lookupfn(repo):
  2169 def lookupfn(repo):
  2170     return lambda symbol: scmutil.isrevsymbol(repo, symbol)
  2170     return lambda symbol: scmutil.isrevsymbol(repo, symbol)
  2171 
  2171 
  2172 def match(ui, spec, lookup=None):
  2172 def match(ui, spec, lookup=None):
  2173     """Create a matcher for a single revision spec"""
  2173     """Create a matcher for a single revision spec"""
  2174     return matchany(ui, [spec], lookup=None)
  2174     return matchany(ui, [spec], lookup=lookup)
  2175 
  2175 
  2176 def matchany(ui, specs, lookup=None, localalias=None):
  2176 def matchany(ui, specs, lookup=None, localalias=None):
  2177     """Create a matcher that will include any revisions matching one of the
  2177     """Create a matcher that will include any revisions matching one of the
  2178     given specs
  2178     given specs
  2179 
  2179