# HG changeset patch # User Gregory Szorc # Date 1440282105 25200 # Node ID fd9b1262f0e4fbcec1f66f01839bf3d4ee4cff59 # Parent 7f49efcaa9b4d870ef037401cfded0135701392f 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. diff -r 7f49efcaa9b4 -r fd9b1262f0e4 mercurial/hgweb/hgweb_mod.py --- 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