See your codebase as business domains and flows.
Recent revisions are kept. Restoring one creates a new revision.