If I was calling this from the command line, I would call (for example):
p4 undo //depot/myfile.txt#2
How can I accomplish the same thing using the perforce API? There appears to be no api for UNDO.
Looks like you can use RunCommand
to run an arbitrary server command in the absence of an API wrapper: