# HG changeset patch # User FUJIWARA Katsunori # Date 1384241032 -32400 # Node ID 88d8e568add154fbd6542f79f32a5158224d1cfe # Parent 2d0ab571b822a664ab7d41acea4ed622de7c995a vfs: add "makelock()" and "readlock()" diff -r 2d0ab571b822 -r 88d8e568add1 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 @@ -177,12 +177,18 @@ def makedirs(self, path=None, mode=None): return util.makedirs(self.join(path), mode) + def makelock(self, info, path): + return util.makelock(info, self.join(path)) + def mkdir(self, path=None): return os.mkdir(self.join(path)) def readdir(self, path=None, stat=None, skip=None): return osutil.listdir(self.join(path), stat, skip) + def readlock(self, path): + return util.readlock(self.join(path)) + def rename(self, src, dst): return util.rename(self.join(src), self.join(dst))