def __init__(self, repo): fullpath = repo.svfs.join("lfs/objects") vfs = vfsmod.blobvfs(fullpath) cachevfs = None usercachepath = repo.ui.config("lfs", "usercache") if usercachepath: cachevfs = vfsmod.blobvfs(usercachepath) super(local, self).__init__(vfs, cachevfs)
def __init__(self, ui, url): self.vfs = vfsmod.blobvfs(url.path)