如何在Perforce JAVA API中解析集成文件 [英] How to resolve integrated files in Perforce JAVA API

查看:218
本文介绍了如何在Perforce JAVA API中解析集成文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决Perforce JAVA API中的集成文件。我正在尝试将文件从一个分支合并到另一个分支。我正在使用以下代码进行合并。

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?

推荐答案

查看IClient.resolveFile()和IClient.resolveFilesAuto():

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.

这篇关于如何在Perforce JAVA API中解析集成文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆