See your codebase as business domains and flows.
domain analysis
Only the most recent Revisions are kept. Restoring one saves its content again as the newest.