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