comparison mercurial/revset.py @ 38251:ead71b15efd5

merge with stable
author Augie Fackler <augie@google.com>
date Wed, 06 Jun 2018 13:31:24 -0400
parents 0a79fb64118e edb28a6d95b7
children f1d55ae2c5c8
comparison
equal deleted inserted replaced
38250:2b8c8b8d1a06 38251: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