Comments
Patch
@@ -110,8 +110,7 @@
def _search(web, req, tmpl):
- def changelist(**map):
- count = 0
+ def simplesearch():
lower = encoding.lower
qw = lower(query).split()
@@ -137,6 +136,12 @@
if miss:
continue
+ yield ctx
+
+ def changelist(**map):
+ count = 0
+
+ for ctx in searchf():
count += 1
n = ctx.node()
showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n)
@@ -179,6 +184,8 @@
tip = web.repo['tip']
parity = paritygen(web.stripecount)
+ searchf = simplesearch
+
return tmpl('search', query=query, node=tip.hex(),
entries=changelist, archives=web.archivelist("tip"),
morevars=morevars, lessvars=lessvars)