stream: remove __getitem__ from the VolatileManager
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Oct 2024 15:55:49 +0200
changeset 52018 4801fde72cc2
parent 52017 0ad269e24075
child 52019 a47f09da8bd1
stream: remove __getitem__ from the VolatileManager It is no longer used and that API will get in the way of the new order.
mercurial/streamclone.py
--- 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)