mercurial/revlog.py
changeset 47396 8230f0204eb8
parent 47394 ac60a1366a49
child 47399 34cc102c73f5
equal deleted inserted replaced
47395:a669404f0f4a 47396:8230f0204eb8
  2582             # Don't store the offset if the sidedata is empty, that way
  2582             # Don't store the offset if the sidedata is empty, that way
  2583             # we can easily detect empty sidedata and they will be no different
  2583             # we can easily detect empty sidedata and they will be no different
  2584             # than ones we manually add.
  2584             # than ones we manually add.
  2585             sidedata_offset = 0
  2585             sidedata_offset = 0
  2586 
  2586 
  2587         e = (
  2587         e = revlogutils.entry(
  2588             revlogutils.offset_type(offset, flags),
  2588             flags=flags,
  2589             deltainfo.deltalen,
  2589             data_offset=offset,
  2590             textlen,
  2590             data_compressed_length=deltainfo.deltalen,
  2591             deltainfo.base,
  2591             data_uncompressed_length=textlen,
  2592             link,
  2592             data_compression_mode=compression_mode,
  2593             p1r,
  2593             data_delta_base=deltainfo.base,
  2594             p2r,
  2594             link_rev=link,
  2595             node,
  2595             parent_rev_1=p1r,
  2596             sidedata_offset,
  2596             parent_rev_2=p2r,
  2597             len(serialized_sidedata),
  2597             node_id=node,
  2598             compression_mode,
  2598             sidedata_offset=sidedata_offset,
  2599             sidedata_compression_mode,
  2599             sidedata_compressed_length=len(serialized_sidedata),
       
  2600             sidedata_compression_mode=sidedata_compression_mode,
  2600         )
  2601         )
  2601 
  2602 
  2602         self.index.append(e)
  2603         self.index.append(e)
  2603         entry = self.index.entry_binary(curr)
  2604         entry = self.index.entry_binary(curr)
  2604         if curr == 0 and self._docket is None:
  2605         if curr == 0 and self._docket is None: