diff -r 43b8da7420a9 -r 10c43444a38e mercurial/util.py --- a/mercurial/util.py Tue Jun 21 19:36:35 2005 -0800 +++ b/mercurial/util.py Tue Jun 21 19:43:40 2005 -0800 @@ -18,7 +18,22 @@ if os.name == 'nt': def pconvert(path): return path.replace("\\", "/") + + def makelock(info, pathname): + ld = os.open(pathname, os.O_CREAT | os.O_WRONLY | os.O_EXCL) + os.write(ld, info) + os.close(ld) + + def readlock(pathname): + return file(pathname).read() else: def pconvert(path): return path + def makelock(info, pathname): + os.symlink(info, pathname) + + def readlock(pathname): + return os.readlink(pathname) + +