Mercurial > hg
comparison mercurial/vfs.py @ 50365:d1d458fb96a5 stable
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 03 May 2023 00:12:34 +0200 |
parents | bc83ebe07bf0 |
children | f173c2c23289 |
comparison
equal
deleted
inserted
replaced
50364:f930af431193 | 50365:d1d458fb96a5 |
---|---|
597 | 597 |
598 class proxyvfs(abstractvfs): | 598 class proxyvfs(abstractvfs): |
599 def __init__(self, vfs: "vfs"): | 599 def __init__(self, vfs: "vfs"): |
600 self.vfs = vfs | 600 self.vfs = vfs |
601 | 601 |
602 @property | |
603 def createmode(self): | |
604 return self.vfs.createmode | |
605 | |
602 def _auditpath(self, path, mode): | 606 def _auditpath(self, path, mode): |
603 return self.vfs._auditpath(path, mode) | 607 return self.vfs._auditpath(path, mode) |
604 | 608 |
605 @property | 609 @property |
606 def options(self): | 610 def options(self): |