[PATCH 7 of 8] vfs: add "makelock()" and "readlock()"

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Tue Nov 12 01:31:56 CST 2013


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1384241032 -32400
#      Tue Nov 12 16:23:52 2013 +0900
# Node ID 8aea1ee094ee05bea6f89851f408895e3bf16c6f
# Parent  0757cfedf42d67c930a8603eede02f5332395e70
vfs: add "makelock()" and "readlock()"

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


More information about the Mercurial-devel mailing list