This seems trivial but I couldn't seem to find it in the documention
or the mailing list archive.
Suppose I deleted a file with
p4 delete foo.c
p4 submit
Now, a couple of changelists later I want to reinstate foo.c to be
part of the tip. So, I get the last active foo.c by
p4 sync foo.c#3
Edit the file
p4 edit foo.c
and try to submit it and get the following message
Submitting change 86.
//depot//foo.c - edit of deleted file; must revert
Out of date files must be resolved or reverted.
Submit failed -- fix problems above then use 'submit -c 86'.