stream: remove __getitem__ from the VolatileManager
It is no longer used and that API will get in the way of the new order.
--- a/mercurial/streamclone.py Tue Oct 01 15:55:29 2024 +0200
+++ b/mercurial/streamclone.py Tue Oct 01 15:55:49 2024 +0200
@@ -601,13 +601,6 @@
util.copyfiles(src, dst, hardlink=True)
return dst
- def __getitem__(self, src):
- """return the path to a valid version of `src`
-
- If the file has no backup, the path of the file is returned
- unmodified."""
- return self._copies.get(src, src)
-
@contextlib.contextmanager
def open(self, src):
actual_path = self._copies.get(src, src)