--- 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))