Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
610 views
in Technique[技术] by (71.8m points)

Cannot add file filename collides with an existing file perforce

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.

question from:https://stackoverflow.com/questions/65909560/cannot-add-file-filename-collides-with-an-existing-file-perforce

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...