changeset 23794: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	Sat Jan 10 21:28:15 2015 -0600
+++ b/mercurial/obsolete.py	Sun Jan 11 14:32:56 2015 -0600
@@ -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