changeset 52931:2787db338b15

bundle2: also expose the `tell` attribute of the underlying chunkbuffer This make it usable and will make pytype happy.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 29 Jan 2025 15:50:01 +0100
parents e4552f135e35
children aee193b1c784
files mercurial/bundle2.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundle2.py	Mon Jan 27 18:18:57 2025 +0100
+++ b/mercurial/bundle2.py	Wed Jan 29 15:50:01 2025 +0100
@@ -1507,6 +1507,10 @@
             self.consumed = True
         return data
 
+    def tell(self) -> int:
+        """the amount of byte read so far in the part"""
+        return self._payloadstream.tell()
+
 
 class seekableunbundlepart(unbundlepart):
     """A bundle2 part in a bundle that is seekable.