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, 6:24 p.m.
Message ID <014bd5db363b33bb08e5b1a7e6f14107@localhost.localdomain>
Download mbox | patch
Permalink /patch/41920/
State Not Applicable
Headers show

Comments

phabricator - Oct. 1, 2019, 6:24 p.m.
Closed by commit rHG7902001aaf41: sidedata: make sure we don&#039;t use the flag if there are not sidedata (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/D6895?vs=16740&id=16767

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