mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
hgweb: don't use mutable default argument value
This commit is contained in:
parent
5cc9a634fe
commit
d2e9e46760
@ -142,8 +142,8 @@ class filerevnav(revnav):
|
||||
return hex(self._changelog.node(self._revlog.linkrev(rev)))
|
||||
|
||||
class _siblings(object):
|
||||
def __init__(self, siblings=[], hiderev=None):
|
||||
self.siblings = [s for s in siblings if s.node() != nullid]
|
||||
def __init__(self, siblings=None, hiderev=None):
|
||||
self.siblings = [s for s in siblings or [] if s.node() != nullid]
|
||||
if len(self.siblings) == 1 and self.siblings[0].rev() == hiderev:
|
||||
self.siblings = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user