[Updated] D10649: revlog: use an intermediate variable for `data` in `_chunk`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon May 17 21:55:58 UTC 2021


Closed by commit rHGe340b556a13e: revlog: use an intermediate variable for `data` in `_chunk` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10649?vs=27888&id=28042

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10649/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D10649

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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
 



To: marmoute, indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210517/132f6322/attachment-0002.html>


More information about the Mercurial-patches mailing list