modify to add an option for `p4 revert -a`

To support revert if unchanged