def _prune_lockfiles(self):
    tree = self.scm.get_tree('HEAD')
    lock_files = [str(fname) for fname in tree.walk_files(self.scm.root_dir) if is_lock_file(fname)]
    if lock_files:
        self.scm.reset(paths=lock_files)
        self.scm.checkout_paths(lock_files, force=True)
def _prune_lockfiles(self):
    tree = self.scm.get_tree('HEAD')
    lock_files = [str(fname) for fname in tree.walk_files(self.scm.root_dir) if is_lock_file(fname)]
    if lock_files:
        self.scm.reset(paths=lock_files)
        self.scm.checkout_paths(lock_files, force=True)