Proper way to ignore source files during Perforce

2019-06-27 06:26发布

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

2条回答
ら.Afraid
2楼-- · 2019-06-27 06:36

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.

查看更多
仙女界的扛把子
3楼-- · 2019-06-27 06:42

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.

查看更多
登录 后发表回答