Patchwork D6895: sidedata: make sure we don't use the flag if there are not sidedata

login
register
mail settings
Submitter phabricator
Date Sept. 27, 2019, 6:10 p.m.
Message ID <cd1293908c4649c69de170a8e1e7c8c2@localhost.localdomain>
Download mbox | patch
Permalink /patch/41811/
State Not Applicable
Headers show

Comments

phabricator - Sept. 27, 2019, 6:10 p.m.
marmoute updated this revision to Diff 16660.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6895?vs=16653&id=16660

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

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

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
@@ -1864,6 +1864,7 @@ 
 
         if sidedata is None:
             sidedata = {}
+            flags = flags & ~REVIDX_SIDEDATA
         elif not self.hassidedata:
             raise error.ProgrammingError(
                 _("trying to add sidedata to a revlog who don't support them")