hgweb: initialize repostate to None
The initial value is irrelevant since refresh() compares it to
a tuple of tuples of file mtime and size. None != tuple and
None is a better default value than a tuple containing irrelevant
values.
--- a/mercurial/hgweb/hgweb_mod.py Wed Aug 26 10:59:09 2015 -0400
+++ b/mercurial/hgweb/hgweb_mod.py Sat Aug 22 15:21:45 2015 -0700
@@ -156,7 +156,7 @@
r.baseui.setconfig('progress', 'disable', 'true', 'hgweb')
self.repo = r
hook.redirect(True)
- self.repostate = ((-1, -1), (-1, -1))
+ self.repostate = None
self.mtime = -1
self.reponame = name
# we use untrusted=False to prevent a repo owner from using