mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
ad2436c3e6
commit
b629be8ff2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user