D6894: revlog: add the appropriate flag is sidedata are passed to `addrevision`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Tue Oct 1 16:07:59 UTC 2019


marmoute updated this revision to Diff 16739.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6894?vs=16659&id=16739

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

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

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
@@ -1868,6 +1868,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)



To: marmoute, durin42, indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list