def __init__(self, repo):
    from dvc.lock import make_lock
    from dvc.scm.base import NoSCMError
    if repo.config['core'].get('no_scm', False):
        raise NoSCMError
    self.repo = repo
    self.scm_lock = make_lock(os.path.join(self.repo.tmp_dir, 'exp_scm_lock'), tmp_dir=self.repo.tmp_dir)
def __init__(self, repo):
    from dvc.lock import make_lock
    from dvc.scm.base import NoSCMError
    if repo.config['core'].get('no_scm', False):
        raise NoSCMError
    self.repo = repo
    self.scm_lock = make_lock(os.path.join(self.repo.tmp_dir, 'exp_scm_lock'), tmp_dir=self.repo.tmp_dir)