How to resolve integrated files in Perforce JAVA API

倾然丶 夕夏残阳落幕 提交于 2019-12-23 02:29:09

问题


How to resolve integrated files in Perforce JAVA API. I am trying to merge files from one branch to another. I am using following code to merge.

tmpClient.integrateFiles(file,  toFile, "17.2",  opts );

After executing this command, files need to be resolved. How can I do that?


回答1:


Look at IClient.resolveFile() and IClient.resolveFilesAuto():

https://www.perforce.com/perforce/r15.1/manuals/p4java-javadoc/com/perforce/p4java/client/IClient.html

The specific method you use will depend on whether you expect that you will always be able to rely on auto-resolve (which is a bad expectation generally) and what sort of system you have in your app to handle conflicting merges.



来源:https://stackoverflow.com/questions/38562749/how-to-resolve-integrated-files-in-perforce-java-api

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