changeset 47263:e340b556a13e

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 03 May 2021 20:22:34 +0200
parents 6bfa6c2c5f15
children b876f0bf7366
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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