hgweb: fix search skipping tip
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Tue, 05 Feb 2008 14:02:03 +0100
changeset 6017 b29b75ce9645
parent 5988 ee317dbfb9d0
child 6018 404be894cf71
child 6019 b70a530bdb93
hgweb: fix search skipping tip
mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Sun Feb 03 21:03:46 2008 -0200
+++ b/mercurial/hgweb/hgweb_mod.py	Tue Feb 05 14:02:03 2008 +0100
@@ -265,7 +265,7 @@
             def revgen():
                 for i in xrange(cl.count() - 1, 0, -100):
                     l = []
-                    for j in xrange(max(0, i - 100), i):
+                    for j in xrange(max(0, i - 100), i + 1):
                         ctx = self.repo.changectx(j)
                         l.append(ctx)
                     l.reverse()