Mercurial > hg
changeset 43039:7902001aaf41
sidedata: make sure we don't use the flag if there are not sidedata
Ensuring this at this level seems safer than relying on caller doing the right
thing.
G: changed mercurial/revlog.py
Differential Revision: https://phab.mercurial-scm.org/D6895
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 27 Sep 2019 16:40:07 +0200 |
parents | 7bb5a2465501 |
children | ba4072c0a911 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Sep 03 23:45:38 2019 +0200 +++ b/mercurial/revlog.py Fri Sep 27 16:40:07 2019 +0200 @@ -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")