readmarkers: use unpacker for fixed header
authorMatt Mackall <mpm@selenic.com>
Sun, 11 Jan 2015 14:37:50 -0600
changeset 23797 eb12c3cf210c
parent 23796 5fc29b459f6e
child 23798 86d2a0c41f44
readmarkers: use unpacker for fixed header
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Sun Jan 11 14:35:03 2015 -0600
+++ b/mercurial/obsolete.py	Sun Jan 11 14:37:50 2015 -0600
@@ -288,9 +288,10 @@
 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