changeset 43038:7bb5a2465501

revlog: add the appropriate flag is sidedata are passed to `addrevision` If we need to store sidedata, we need the flag to be set and the associated processing to be called. Differential Revision: https://phab.mercurial-scm.org/D6894
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 03 Sep 2019 23:45:38 +0200
parents 142deb539ccf
children 7902001aaf41
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Wed Sep 04 03:20:55 2019 +0200
+++ b/mercurial/revlog.py	Tue Sep 03 23:45:38 2019 +0200
@@ -1865,6 +1865,8 @@
             raise error.ProgrammingError(
                 _("trying to add sidedata to a revlog who don't support them")
                 )
+        else:
+            flags |= REVIDX_SIDEDATA
 
         if flags:
             node = node or self.hash(text, p1, p2)