# HG changeset patch # User Pierre-Yves David # Date 1620066154 -7200 # Node ID e340b556a13e8d7f11c501207746395c90bd1cdb # Parent 6bfa6c2c5f154afacc4c04acb7124ccc3ff42a9e revlog: use an intermediate variable for `data` in `_chunk` This will help us to dispatch this to the right decompressor. Differential Revision: https://phab.mercurial-scm.org/D10649 diff -r 6bfa6c2c5f15 -r e340b556a13e mercurial/revlog.py --- a/mercurial/revlog.py Mon May 03 18:41:51 2021 +0200 +++ b/mercurial/revlog.py Mon May 03 20:22:34 2021 +0200 @@ -1810,7 +1810,8 @@ if inline: chunkstart += (rev + 1) * iosize chunklength = length(rev) - ladd(decomp(buffer(data, chunkstart - offset, chunklength))) + c = buffer(data, chunkstart - offset, chunklength) + ladd(decomp(c)) return l