[PATCH] hgweb: use revset.spanset where appropriate

Yuya Nishihara yuya at tcha.org
Mon Feb 2 09:32:28 CST 2015


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1422883732 -32400
#      Mon Feb 02 22:28:52 2015 +0900
# Node ID 5fa3d2346846cea93205183cd9be7447e410ec96
# Parent  d247b985ebc0acdb837bc89288c8569151446620
hgweb: use revset.spanset where appropriate

It is remainder of 9ad6dae67845 where spanset was introduced.

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -187,7 +187,7 @@ def _search(web, req, tmpl):
 
         mfunc = revset.match(web.repo.ui, revdef)
         try:
-            revs = mfunc(web.repo, revset.baseset(web.repo))
+            revs = mfunc(web.repo, revset.spanset(web.repo))
             return MODE_REVSET, revs
             # ParseError: wrongly placed tokens, wrongs arguments, etc
             # RepoLookupError: no such revision, e.g. in 'revision:'


More information about the Mercurial-devel mailing list