Initial implementation of patch-revert command.