Revert should clean up repository state when there is nothing to revert