# HG changeset patch # User Florian La Roche # Date 2005-09-18 21:07:02 # Node ID a1a84dd489ff99ceee34615899ae59c0ec44f030 # Parent fe3dd937e803ce876c85b26cac70ede97f17dd31 Fix cut and paste error in hgweb.py diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -184,8 +184,8 @@ class hgweb: if s.st_mtime != self.mtime: self.mtime = s.st_mtime self.repo = hg.repository(self.repo.ui, self.repo.root) - self.maxchanges = self.repo.ui.config("web", "maxchanges", 10) - self.maxfiles = self.repo.ui.config("web", "maxchanges", 10) + self.maxchanges = int(self.repo.ui.config("web", "maxchanges", 10)) + self.maxfiles = int(self.repo.ui.config("web", "maxfiles", 10)) self.allowpull = self.repo.ui.configbool("web", "allowpull", True) def date(self, cs):