Prevent trying to revert past the root.
Test cases for the revert command.