Mercurial > hg
diff mercurial/hgweb/webcommands.py @ 20364:a6cf48b2880d
revset: added baseset class (still empty) to improve revset performance
This class is going to be used to cache the set that is created from this list
in many cases while evaluating a revset.
author | Lucas Moscovicz <lmoscovicz@fb.com> |
---|---|
date | Tue, 21 Jan 2014 11:39:26 -0800 |
parents | 9985e188d940 |
children | da6bea33007b |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Mon Feb 03 21:34:13 2014 +0100 +++ b/mercurial/hgweb/webcommands.py Tue Jan 21 11:39:26 2014 -0800 @@ -187,7 +187,7 @@ mfunc = revset.match(web.repo.ui, revdef) try: - revs = mfunc(web.repo, list(web.repo)) + revs = mfunc(web.repo, revset.baseset(web.repo)) return MODE_REVSET, revs # ParseError: wrongly placed tokens, wrongs arguments, etc # RepoLookupError: no such revision, e.g. in 'revision:'