Tune code search to keep the context you need.
Recent revisions are kept. Restoring one creates a new revision.