Reputation: 315
I am trying to submit a CL to perforce but I am getting this error message
Cannot add file '.../cfg_files/file1.cfg', filename collides with an existing file '.../cfg_files'
cfg_files is a soft link submitted earlier to another directory that I had in Peforce and the original directory had a file with the name file1.cfg. I am not sure what I did wrong to cause that issue or how to solve it. I have tried
p4 revert cfg_files/file1.cfg
output: cfg_files/file1.cfg - file(s) not opened on this client.
p4 shelve -c CL# cfg_files/file1.cfg
output: Shelving files for change CL#. cfg_files/file1.cfg - file(s) not opened in that changelist. No files to shelve.
Any help to solve that issue is much appreciated.
Upvotes: 1
Views: 1478
Reputation: 71454
To revert the file so that it's no longer included in the pending changelist you're trying to submit, use the full path:
p4 revert //dvt/v20/dev/main/test/gui/selenium_tests/playback/cfg_files/file1.cfg
If you instead want to delete the cfg_files
symlink that conflicts with the directory you're trying to add, do:
p4 delete //dvt/v20/dev/main/test/gui/selenium_tests/playback/cfg_files
Upvotes: 3