diff -r 20b5701cd90a -r a3b010f84c57 mercurial/obsolete.py --- a/mercurial/obsolete.py Sun Jan 11 14:51:49 2015 -0600 +++ b/mercurial/obsolete.py Sun Jan 11 14:52:57 2015 -0600 @@ -320,9 +320,8 @@ parents = _unpack(_fm1nodesha1 * numpar, data[o2:o3]) # read metadata - metaformat = '>' + (_fm1metapair * nummeta) off = o3 + _fm1metapairsize * nummeta - metapairsize = _unpack(metaformat, data[o3:off]) + metapairsize = _unpack('>' + (_fm1metapair * nummeta), data[o3:off]) metadata = [] for idx in xrange(0, len(metapairsize), 2): o1 = off + metapairsize[idx]