# HG changeset patch # User Matt Mackall # Date 2015-01-11 20:37:50 # Node ID eb12c3cf210cbb08d50af0c5f8ad7b7a7c330fd1 # Parent 5fc29b459f6ed24fc96a99a8c57918ec7b0f40bb readmarkers: use unpacker for fixed header diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py --- a/mercurial/obsolete.py +++ b/mercurial/obsolete.py @@ -288,9 +288,10 @@ def _fm0decodemeta(data): def _fm1readmarkers(data, off=0): # Loop on markers l = len(data) + ufixed = util.unpacker(_fm1fixed) while off + _fm1fsize <= l: # read fixed part - fixeddata = _unpack(_fm1fixed, data[off:off + _fm1fsize]) + fixeddata = ufixed(data[off:off + _fm1fsize]) off += _fm1fsize ttsize, seconds, tz, flags, numsuc, numpar, nummeta, prec = fixeddata