mercurial/revset.py
changeset 38239 ead71b15efd5
parent 37867 0a79fb64118e
parent 37854 edb28a6d95b7
child 38275 f1d55ae2c5c8
equal deleted inserted replaced
38238:2b8c8b8d1a06 38239:ead71b15efd5
  2171 def lookupfn(repo):
  2171 def lookupfn(repo):
  2172     return lambda symbol: scmutil.isrevsymbol(repo, symbol)
  2172     return lambda symbol: scmutil.isrevsymbol(repo, symbol)
  2173 
  2173 
  2174 def match(ui, spec, lookup=None):
  2174 def match(ui, spec, lookup=None):
  2175     """Create a matcher for a single revision spec"""
  2175     """Create a matcher for a single revision spec"""
  2176     return matchany(ui, [spec], lookup=None)
  2176     return matchany(ui, [spec], lookup=lookup)
  2177 
  2177 
  2178 def matchany(ui, specs, lookup=None, localalias=None):
  2178 def matchany(ui, specs, lookup=None, localalias=None):
  2179     """Create a matcher that will include any revisions matching one of the
  2179     """Create a matcher that will include any revisions matching one of the
  2180     given specs
  2180     given specs
  2181 
  2181