Mercurial > hg
changeset 180:f25944662097
hgweb: Fix navigate to 0 bug
author | mpm@selenic.com |
---|---|
date | Fri, 27 May 2005 12:45:41 -0800 |
parents | ff5377a4b203 |
children | 089594a5bbde |
files | mercurial/hgweb.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb.py Fri May 27 12:42:52 2005 -0800 +++ b/mercurial/hgweb.py Fri May 27 12:45:41 2005 -0800 @@ -195,7 +195,7 @@ def footer(self): yield self.t("footer", repo = self.reponame) - def changelog(self, pos=None): + def changelog(self, pos): def changenav(): def seq(factor = 1): yield 1 * factor @@ -255,7 +255,6 @@ cl = self.repo.changelog mf = cl.read(cl.tip())[0] count = cl.count() - pos = pos or count - 1 end = min(pos, count - 1) start = max(0, pos - self.maxchanges) end = min(count - 1, start + self.maxchanges)