Patchwork hgweb: use revset.spanset where appropriate

login
register
mail settings
Submitter Yuya Nishihara
Date Feb. 2, 2015, 3:32 p.m.
Message ID <5fa3d2346846cea93205.1422891148@mimosa>
Download mbox | patch
Permalink /patch/7594/
State Accepted
Commit db85e454fccc505a7d669af9cf01fcad12b466de
Headers show

Comments

Yuya Nishihara - Feb. 2, 2015, 3:32 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.
Matt Mackall - Feb. 2, 2015, 8:51 p.m.
On Tue, 2015-02-03 at 00:32 +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1422883732 -32400
> #      Mon Feb 02 22:28:52 2015 +0900
> # Node ID 5fa3d2346846cea93205183cd9be7447e410ec96
> # Parent  d247b985ebc0acdb837bc89288c8569151446620
> hgweb: use revset.spanset where appropriate

Queued for default, thanks.

Patch

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:'