changeset 20086:f3df2612f3c3

vfs: add "chmod()"
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 12 Nov 2013 16:23:52 +0900
parents 589d6bb5b18d
children cf3b8285af00
files mercurial/scmutil.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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))