mercurial/obsolete.py
changeset 23802 a3b010f84c57
parent 23801 20b5701cd90a
child 23803 2763edaba857
equal deleted inserted replaced
23801:20b5701cd90a 23802:a3b010f84c57
   318             else:
   318             else:
   319                 o3 = o2 + _fm1nodesha1size * numpar
   319                 o3 = o2 + _fm1nodesha1size * numpar
   320                 parents = _unpack(_fm1nodesha1 * numpar, data[o2:o3])
   320                 parents = _unpack(_fm1nodesha1 * numpar, data[o2:o3])
   321 
   321 
   322         # read metadata
   322         # read metadata
   323         metaformat = '>' + (_fm1metapair * nummeta)
       
   324         off = o3 + _fm1metapairsize * nummeta
   323         off = o3 + _fm1metapairsize * nummeta
   325         metapairsize = _unpack(metaformat, data[o3:off])
   324         metapairsize = _unpack('>' + (_fm1metapair * nummeta), data[o3:off])
   326         metadata = []
   325         metadata = []
   327         for idx in xrange(0, len(metapairsize), 2):
   326         for idx in xrange(0, len(metapairsize), 2):
   328             o1 = off + metapairsize[idx]
   327             o1 = off + metapairsize[idx]
   329             o2 = o1 + metapairsize[idx + 1]
   328             o2 = o1 + metapairsize[idx + 1]
   330             metadata.append((data[off:o1], data[o1:o2]))
   329             metadata.append((data[off:o1], data[o1:o2]))