Your AEM component, from dialog to unit tests.
Recent revisions are kept. Restoring one creates a new revision.