Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 37839:edb28a6d95b7 stable
revset: pass in lookup function to matchany() (issue5879)
Silly mistake in f83cb91b052e.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 11 May 2018 20:10:22 +0900 |
parents | f83cb91b052e |
children | ead71b15efd5 |
comparison
equal
deleted
inserted
replaced
37838:69381a28b456 | 37839: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 |