Fix cut and paste error in hgweb.py
authorFlorian La Roche <laroche@redhat.com>
Sun, 18 Sep 2005 14:07:02 -0700
changeset 1275 a1a84dd489ff
parent 1274 fe3dd937e803
child 1276 25e5b1086624
Fix cut and paste error in hgweb.py
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):