Submitter | Gregory Szorc |
---|---|
Date | March 13, 2017, 4:57 a.m. |
Message ID | <14122c7b97163496df5a.1489381056@ubuntu-vm-main> |
Download | mbox | patch |
Permalink | /patch/19271/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py --- a/mercurial/hgweb/webutil.py +++ b/mercurial/hgweb/webutil.py @@ -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 = []