vfs: add "chmod()"
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Tue, 12 Nov 2013 16:23:52 +0900
changeset 20086 f3df2612f3c3
parent 20085 589d6bb5b18d
child 20087 cf3b8285af00
vfs: add "chmod()"
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Tue Nov 12 16:23:52 2013 +0900
+++ b/mercurial/scmutil.py	Tue Nov 12 16:23:52 2013 +0900
@@ -150,6 +150,9 @@
         finally:
             fp.close()
 
+    def chmod(self, path, mode):
+        return os.chmod(self.join(path), mode)
+
     def exists(self, path=None):
         return os.path.exists(self.join(path))