From patchwork Fri Sep 27 16:18:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6894: revlog: add the appropriate flag is sidedata are passed to `addrevision` From: phabricator X-Patchwork-Id: 41803 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Fri, 27 Sep 2019 16:18:18 +0000 marmoute created this revision. marmoute added a reviewer: durin42. Herald added a reviewer: indygreg. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY If we need to store sidedata, we need the flag to be set and the associated processing to be called. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D6894 AFFECTED FILES mercurial/revlog.py CHANGE DETAILS To: marmoute, durin42, indygreg, #hg-reviewers Cc: mercurial-devel 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)