# HG changeset patch # User Pierre-Yves David # Date 1738162201 -3600 # Node ID 2787db338b159a9bd4d7454b92bc9c1c135bf53d # Parent e4552f135e3524703a6b33d03d41b9f633746327 bundle2: also expose the `tell` attribute of the underlying chunkbuffer This make it usable and will make pytype happy. diff -r e4552f135e35 -r 2787db338b15 mercurial/bundle2.py --- 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.