--- a/mercurial/obsolete.py Sat Jan 10 21:25:07 2015 -0600
+++ b/mercurial/obsolete.py Sat Jan 10 21:27:29 2015 -0600
@@ -293,6 +293,7 @@
fixeddata = _unpack(_fm1fixed, data[off:off + _fm1fsize])
off += _fm1fsize
ttsize, seconds, tz, flags, numsuc, numpar, nummeta, prec = fixeddata
+
# build the date tuple (upgrade tz minutes to seconds)
date = (seconds, tz * 60)
_fm1node = _fm1nodesha1
@@ -300,12 +301,14 @@
if flags & usingsha256:
_fm1node = _fm1nodesha256
fnodesize = _fm1nodesha256size
+
# read replacement
sucs = ()
if numsuc:
s = (fnodesize * numsuc)
sucs = _unpack(_fm1node * numsuc, data[off:off + s])
off += s
+
# read parents
if numpar == _fm1parentnone:
parents = None
@@ -315,6 +318,7 @@
s = (fnodesize * numpar)
parents = _unpack(_fm1node * numpar, data[off:off + s])
off += s
+
# read metadata
metaformat = '>' + (_fm1metapair * nummeta)
s = _fm1metapairsize * nummeta