p4 revert -a will revert all files that haven't actually be edited, leaving the edited opened. (Thanks to TVL for this one)
p4 revert -a
(Thanks to TVL for this one)