Mercurial > hg > mercurial-source
changeset 23806:e1583d70c4f2
readmarkers: drop another conditional
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 11 Jan 2015 14:32:56 -0600 |
parents | 201e15167d99 |
children | 629b345d105f |
files | mercurial/obsolete.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/obsolete.py +++ b/mercurial/obsolete.py @@ -310,9 +310,7 @@ # read parents if numpar == _fm1parentnone: parents = None - elif numpar == 0: - parents = () - elif numpar: # neither None nor zero + else: s = (fnodesize * numpar) parents = _unpack(_fm1node * numpar, data[off:off + s]) off += s