diff mercurial/vfs.py @ 43027:3518da504303

vfs: give all vfs an options attribute by default Multiple code path assume vfs have an options attribute, including the vfs module itself. So for consistency we explicitly add one to all vfs. This will prevent various crash in the next changesets. Differential Revision: https://phab.mercurial-scm.org/D6935
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 27 Sep 2019 05:17:30 +0200
parents e0d00ec2d614
children 2372284d9457
line wrap: on
line diff
--- a/mercurial/vfs.py	Fri Sep 27 06:24:42 2019 +0200
+++ b/mercurial/vfs.py	Fri Sep 27 05:17:30 2019 +0200
@@ -327,6 +327,7 @@
             self.audit = (lambda path, mode=None: True)
         self.createmode = None
         self._trustnlink = None
+        self.options = {}
 
     @util.propertycache
     def _cansymlink(self):