Map your hierarchical data with depth-aware vectors.
Recent revisions are kept. Restoring one creates a new revision.