Mercurial > hg-stable
changeset 47402:8230f0204eb8
revlog: use the new `entry` function in revlog.py
This just make the construction of the tuple clearer.
Differential Revision: https://phab.mercurial-scm.org/D10794
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 30 May 2021 17:11:10 +0200 |
parents | a669404f0f4a |
children | 8f87dcb46f53 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 14 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun May 30 17:10:56 2021 +0200 +++ b/mercurial/revlog.py Sun May 30 17:11:10 2021 +0200 @@ -2584,19 +2584,20 @@ # than ones we manually add. sidedata_offset = 0 - e = ( - revlogutils.offset_type(offset, flags), - deltainfo.deltalen, - textlen, - deltainfo.base, - link, - p1r, - p2r, - node, - sidedata_offset, - len(serialized_sidedata), - compression_mode, - sidedata_compression_mode, + e = revlogutils.entry( + flags=flags, + data_offset=offset, + data_compressed_length=deltainfo.deltalen, + data_uncompressed_length=textlen, + data_compression_mode=compression_mode, + data_delta_base=deltainfo.base, + link_rev=link, + parent_rev_1=p1r, + parent_rev_2=p2r, + node_id=node, + sidedata_offset=sidedata_offset, + sidedata_compressed_length=len(serialized_sidedata), + sidedata_compression_mode=sidedata_compression_mode, ) self.index.append(e)