Skip to content
Snippets Groups Projects
Commit 7902001aaf41 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

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
parent 7bb5a2465501
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment