[p4] Error when replacing a file with a directory with the same name

P4Reg <[email protected]>
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'P4Reg'.

The default behavior for 2017.1 is to check for namespace collisions and you
can't submit a change that contains both the delete action on the file and
the add action on the test folder/file. You'll need to do it in 2 steps -
submit the change with the mark for delete first, then do the add in another
pending change and submit that.

The reason you are seeing this now is the following fix made in 2017.1 as noted
in the release notes (  
https://www.perforce.com/perforce/doc.current/user/relnotes.txt ):

Bugs fixed in 2017.1
...cut...
#1489051 (Bug #2170) **
    Submitting a file with the same name as an existing
depot 
    directory path (or vice versa) will now be rejected.

While the check was put in place for valid reasons, as long as you are aware of
the possibility of accidentally adding a same name file/folder you can disable
the check so it will behave as before by setting the
"submit.collision.check" server configurable to 0:

p4 configure set submit.collision.check=0



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5516-error-when-replacing-a-file-with-a-directory-with-the-same-name
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.