Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 24114:fafd9a1284cf
revset: make match function initiate query from full set by default
This change is intended to avoid exposing the implementation detail to
callers. I'm going to extend fullreposet to support "null" revision, so
these mfunc calls will have to use fullreposet() instead of spanset().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 02 Feb 2015 22:21:07 +0900 |
parents | 8e04a73b5502 |
children | f53b7174facf |
comparison
equal
deleted
inserted
replaced
24113:b08af8f0ac01 | 24114:fafd9a1284cf |
---|---|
235 if not funcsused.issubset(revset.safesymbols): | 235 if not funcsused.issubset(revset.safesymbols): |
236 return MODE_KEYWORD, query | 236 return MODE_KEYWORD, query |
237 | 237 |
238 mfunc = revset.match(web.repo.ui, revdef) | 238 mfunc = revset.match(web.repo.ui, revdef) |
239 try: | 239 try: |
240 revs = mfunc(web.repo, revset.spanset(web.repo)) | 240 revs = mfunc(web.repo) |
241 return MODE_REVSET, revs | 241 return MODE_REVSET, revs |
242 # ParseError: wrongly placed tokens, wrongs arguments, etc | 242 # ParseError: wrongly placed tokens, wrongs arguments, etc |
243 # RepoLookupError: no such revision, e.g. in 'revision:' | 243 # RepoLookupError: no such revision, e.g. in 'revision:' |
244 # Abort: bookmark/tag not exists | 244 # Abort: bookmark/tag not exists |
245 # LookupError: ambiguous identifier, e.g. in '(bc)' on a large repo | 245 # LookupError: ambiguous identifier, e.g. in '(bc)' on a large repo |