I’m writing a simple Perforce plugin that lets me easily checkout a file from my active Perforce client.
The checkout command works fine, but what I’d like to do now is create an on_pre_save event that looks to see if the file needs to be checked out, pops up a box asking if I’d like to check it out, and does so if I answer yes.
The problem is when I answer no – is there some way to cancel the save action from within an on_pre_save event?