def load_snapshot(git_worktree, input_path):
    snapshot = Snapshot()
    ui.info(ui.green, "Loading snapshot from", ui.white,  input_path)
    snapshot.load(input_path)
    for (src, ref) in snapshot.refs.iteritems():
        ui.info("Loading", src)
        git_project = git_worktree.get_git_project(src, raises=False)
        if git_project:
            qisrc.reset.clever_reset_ref(git_project, ref)
Load a snapshot file and reset projects.
dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/snapshot.py/load_snapshot