Build your C/C++ project with target-first CMake.
Recent revisions are kept. Restoring one creates a new revision.