Suppose your source file //source/old/file.c#5and you moved it to //source/new/file.c, and then deleted the old file in the edition //source/old/file.c#6. You need to integrate from the old file into the new file using the flag -iso that Perforce allows you to integrate two files that it does not know the integration history:
p4 integrate -i //source/old/file.c
then allow the files. Usually during integration you want to accept the merged version of the file, but in this case you are mainly interested in letting Perforce know that you have already done the integration, so you can use it -ayto “accept yours” by discarding the old version of the file:
p4 resolve -ay //source/new/file.c
then submit the revision.
(Ideally, you would integrate first, then make any changes and present everything, but in this way the files will be linked in the Perforce integration history.)