def open(self, block_name, track, time, version_tag): ''' Params: block_version. It time is None last version will be retrieved ''' self._process() opened_version = HiveManager.open(self, block_name, track, time, version_tag) self._checkout() self._checkout_deps() if os.path.exists(os.path.join(self.hive_disk_image.paths.deps, block_name)): raise BiiException("Unable to remove %s from 'deps' folder. Maybe there exist " "temporary files, or some file is locked by other " "application. Check it and delete manually 'deps/%s' folder." % (block_name, block_name)) self.bii.user_io.out.write('Opened %s\n' % str(opened_version))
def open(self, block_name, track, time, version_tag): ''' Params: block_version. It time is None last version will be retrieved ''' self._process() opened_version = HiveManager.open(self, block_name, track, time, version_tag) self._checkout() self._checkout_deps() if os.path.exists( os.path.join(self.hive_disk_image.paths.deps, block_name)): raise BiiException( "Unable to remove %s from 'deps' folder. Maybe there exist " "temporary files, or some file is locked by other " "application. Check it and delete manually 'deps/%s' folder." % (block_name, block_name)) self.bii.user_io.out.write('Opened %s\n' % str(opened_version))