comparison mercurial/hgweb/webcommands.py @ 23992:db85e454fccc

hgweb: use revset.spanset where appropriate It is remainder of 9ad6dae67845 where spanset was introduced.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 02 Feb 2015 22:28:52 +0900
parents 513d47905114
children b53d2afd11fb
comparison
equal deleted inserted replaced
23991:07c1a7d1ef69 23992:db85e454fccc
185 if not funcsused.issubset(revset.safesymbols): 185 if not funcsused.issubset(revset.safesymbols):
186 return MODE_KEYWORD, query 186 return MODE_KEYWORD, query
187 187
188 mfunc = revset.match(web.repo.ui, revdef) 188 mfunc = revset.match(web.repo.ui, revdef)
189 try: 189 try:
190 revs = mfunc(web.repo, revset.baseset(web.repo)) 190 revs = mfunc(web.repo, revset.spanset(web.repo))
191 return MODE_REVSET, revs 191 return MODE_REVSET, revs
192 # ParseError: wrongly placed tokens, wrongs arguments, etc 192 # ParseError: wrongly placed tokens, wrongs arguments, etc
193 # RepoLookupError: no such revision, e.g. in 'revision:' 193 # RepoLookupError: no such revision, e.g. in 'revision:'
194 # Abort: bookmark/tag not exists 194 # Abort: bookmark/tag not exists
195 # LookupError: ambiguous identifier, e.g. in '(bc)' on a large repo 195 # LookupError: ambiguous identifier, e.g. in '(bc)' on a large repo