##// END OF EJS Templates
hgweb: explicitly tests for None in webutil...
Pierre-Yves David -
r31434:d4645ae6 default
parent child Browse files
Show More
@@ -143,7 +143,9 b' class filerevnav(revnav):'
143
143
144 class _siblings(object):
144 class _siblings(object):
145 def __init__(self, siblings=None, hiderev=None):
145 def __init__(self, siblings=None, hiderev=None):
146 self.siblings = [s for s in siblings or [] if s.node() != nullid]
146 if siblings is None:
147 siblings = []
148 self.siblings = [s for s in siblings if s.node() != nullid]
147 if len(self.siblings) == 1 and self.siblings[0].rev() == hiderev:
149 if len(self.siblings) == 1 and self.siblings[0].rev() == hiderev:
148 self.siblings = []
150 self.siblings = []
149
151
General Comments 0
You need to be logged in to leave comments. Login now