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.
This commit is contained in:
Gregory Szorc 2015-08-22 15:21:45 -07:00
parent ad2436c3e6
commit b629be8ff2

View File

@ -156,7 +156,7 @@ class hgweb(object):
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