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

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

Comments

phabricator - Oct. 1, 2019, 4:08 p.m.
marmoute updated this revision to Diff 16740.

REPOSITORY
  rHG Mercurial

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

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")