Totally confused with the strange behavior of "p4 sync". Tried running the following commands
Note: The filename is not present in workspace
p4 sync //depot/filename --- shows that files are up-to-date
p4 have //depot/filename --- shows files not on client
Thought may be the perforce server thinks the file is present in its client's have database. So deleted the file using
p4 sync //depot/filename#none --- shows files up-to-date
p4 sync //depot/filename#head --- shows files up-to-date
Finally when I say
p4 have //depot/filename --- shows files not on client
Then I did
p4 sync -f //depot/filename#head --- shows //depot/filename - deleted as c:/workspace/filename
and in the end
p4 have //depot/filename --- shows file not on client.
Any idea what could be the issue here?