vfs: add "makelock()" and "readlock()"
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Tue, 12 Nov 2013 16:23:52 +0900
changeset 20090 88d8e568add1
parent 20089 2d0ab571b822
child 20091 abfe6a8e619b
vfs: add "makelock()" and "readlock()"
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))