diff mercurial/revlog.py @ 46712:e8c11a2c96c0

delta: add sidedata field to revision delta When emitting revision delta, we need to also emit the sidedata information just added in the revlogv2 format if appropriate. Differential Revision: https://phab.mercurial-scm.org/D10027
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Feb 2021 18:18:35 +0100
parents a41565bef69f
children 45f0d5297698
line wrap: on
line diff
--- a/mercurial/revlog.py	Thu Feb 18 17:36:52 2021 +0100
+++ b/mercurial/revlog.py	Thu Feb 18 18:18:35 2021 +0100
@@ -204,6 +204,7 @@
     baserevisionsize = attr.ib()
     revision = attr.ib()
     delta = attr.ib()
+    sidedata = attr.ib()
     linknode = attr.ib(default=None)
 
 
@@ -2587,6 +2588,7 @@
                     dfh,
                     alwayscache=alwayscache,
                     deltacomputer=deltacomputer,
+                    sidedata=sidedata,
                 )
 
                 if addrevisioncb: