[Updated] D10794: revlog: use the new `entry` function in revlog.py

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Jun 7 09:26:32 UTC 2021


Closed by commit rHG8230f0204eb8: revlog: use the new `entry` function in revlog.py (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10794?vs=28475&id=28497

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10794/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D10794

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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)



To: marmoute, indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210607/fa289cf0/attachment-0001.html>


More information about the Mercurial-patches mailing list