Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 20090:88d8e568add1
vfs: add "makelock()" and "readlock()"
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 12 Nov 2013 16:23:52 +0900 |
parents | f3df2612f3c3 |
children | a6cf48b2880d 58c32a9c8e7b |
line wrap: on
line diff
--- 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))