revlog: add the appropriate flag is sidedata are passed to `addrevision`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 03 Sep 2019 23:45:38 +0200
changeset 43038 7bb5a2465501
parent 43037 142deb539ccf
child 43039 7902001aaf41
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
mercurial/revlog.py
--- 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)