bversion/storage/versioned_storage.py
def lock(self):
        """ Synchronise access to the repo between users and processes. """

        lock_file = open(sfs.cpjoin(self.base_path, 'lock_file'), 'w')

        try:
            fcntl.flock(lock_file, fcntl.LOCK_EX | fcntl.LOCK_NB)
            self.lock_file = lock_file
            return True
        except IOError as e:
            if e.errno in [errno.EACCES, errno.EAGAIN]:
                return False
            else:
                raise
 Synchronise access to the repo between users and processes. 
Synchronise access to the repo between users and processes.
Synchronise access to the repo between users and processes .
def lock(self):
        lock_file = open(sfs.cpjoin(self.base_path, 'lock_file'), 'w')
        try:
            fcntl.flock(lock_file, fcntl.LOCK_EX | fcntl.LOCK_NB)
            self.lock_file = lock_file
            return True
        except IOError as e:
            if e.errno in [errno.EACCES, errno.EAGAIN]:
                return False
            else:
                raise
def lock ( self ) : lock_file = open ( sfs . cpjoin ( self . base_path , 'lock_file' ) , 'w' ) try : fcntl . flock ( lock_file , fcntl . LOCK_EX | fcntl . LOCK_NB ) self . lock_file = lock_file return True except IOError as e : if e . errno in [ errno . EACCES , errno . EAGAIN ] : return False else : raise
Synchronise access to the repo between users and processes.
Synchronise access to the repo between users and processes .
""" Synchronise access to the repo between users and processes. """
self