vfsproxy: inherit the `createmode` attribute too stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 03 May 2023 00:12:34 +0200
branchstable
changeset 50365 d1d458fb96a5
parent 50364 f930af431193
child 50366 a445194f0a4d
vfsproxy: inherit the `createmode` attribute too It is an important part of the API when creating directory. We will need it in the next changeset.
mercurial/vfs.py
--- a/mercurial/vfs.py	Tue May 02 21:43:45 2023 +0200
+++ b/mercurial/vfs.py	Wed May 03 00:12:34 2023 +0200
@@ -599,6 +599,10 @@
     def __init__(self, vfs: "vfs"):
         self.vfs = vfs
 
+    @property
+    def createmode(self):
+        return self.vfs.createmode
+
     def _auditpath(self, path, mode):
         return self.vfs._auditpath(path, mode)