Patchwork [3,of,8] vfs: add "chmod()"

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Nov. 12, 2013, 7:31 a.m.
Message ID <48f840c971c88651a82a.1384241512@juju>
Download mbox | patch
Permalink /patch/2924/
State Accepted
Commit f3df2612f3c38d4d813eb3fda9301190d44a70ca
Headers show

Comments

Katsunori FUJIWARA - Nov. 12, 2013, 7:31 a.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1384241032 -32400
#      Tue Nov 12 16:23:52 2013 +0900
# Node ID 48f840c971c88651a82a72eccaaf4195c8a7864d
# Parent  5a30251eb8bca1d147d00ee32744a578ea8eca43
vfs: add "chmod()"

Patch

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -242,6 +242,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))