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

login
register
mail settings
Submitter phabricator
Date Oct. 1, 2019, 6:24 p.m.
Message ID <b3f02d63787eef13211fb495dfa0a01b@localhost.localdomain>
Download mbox | patch
Permalink /patch/41918/
State Not Applicable
Headers show

Comments

phabricator - Oct. 1, 2019, 6:24 p.m.
Closed by commit rHG7bb5a2465501: revlog: add the appropriate flag is sidedata are passed to `addrevision` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

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

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




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

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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)