Mercurial > hg
changeset 13268:fff12b3d953a
revlog: explicit test and explicit variable names
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 16 Jan 2011 12:25:46 +0100 |
parents | a483b3183ee8 |
children | aa3f726a2bdb |
files | mercurial/revlog.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Jan 16 12:24:48 2011 +0100 +++ b/mercurial/revlog.py Sun Jan 16 12:25:46 2011 +0100 @@ -272,9 +272,9 @@ d = self._io.parseindex(i, self._inline) except (ValueError, IndexError): raise RevlogError(_("index %s is corrupted") % (self.indexfile)) - self.index, n, self._chunkcache = d - if n: - self.nodemap = n + self.index, nodemap, self._chunkcache = d + if nodemap is not None: + self.nodemap = nodemap self.rev = self._revmap if not self._chunkcache: self._chunkclear()