Proper way to ignore source files during Perforce integration

☆樱花仙子☆ 提交于 2019-12-10 15:52:38

问题


In my primary branch there is a change list with 10 files that I'm trying to integrate into a development branch. All of the outstanding files in the change list should be ignored, and not branched into the target.

What are the steps to do the integration so that Perforce does not create the files in the target branch, and ignores the change list files for all future integrations?

I originally did an integration with -Dt, and then reverted the 10 files I did not want to be created in the target branch. After this, Perforce continues to try and re-integrate these files to the target.

Maybe this is part of the issue or irrelevant, but the source files are not textual edits, but updates to the filetype fields


回答1:


Integrate the file, then do 'accept yours' when you are resolving. That tells the server that you want to explicitly ignore the change from the other branch, and the server won't subsequently include that change in future integrations.




回答2:


This worked for me:

p4 integrate -Rb -Rd -b <branch>

Then in P4V, Resolve --> Accept Target.

See here for information on the -Rb and -Rd options.



来源:https://stackoverflow.com/questions/13870354/proper-way-to-ignore-source-files-during-perforce-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!