Modern C# code with fewer needless allocations.
Recent revisions are kept. Restoring one creates a new revision.