强制从命令行自动解析?

发布于 2024-07-29 08:48:52 字数 231 浏览 7 评论 0原文

当我尝试在集成中解析大量文件时,P4V 一直困扰着我。 我希望能够在命令行中执行此操作。

以下是 P4V 中的步骤:

  1. 右键单击​​ CL。
  2. 选择“解析文件...”将出现一个对话框。
  3. 选择“如果不存在冲突,则合并您和他们的”。
  4. 单击“自动”。

有人可以将其转换为具有正确参数的 p4 命令行命令吗?

P4V has been crapping out on me when attempting to resolve a large number of files as part of an integration. I want to be able to do this in the command line.

Here's the steps in P4V:

  1. Right-click the CL.
  2. Choose "Resolve Files..." A dialog will appear.
  3. Choose "Merge yours and theirs if no conflicts exist".
  4. Click Auto.

Can someone translate this into a p4 command line command with correct arguments?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

生生漫 2024-08-05 08:48:52

您可以使用 p4resolve -am [file ...] 这将跳过有冲突的文件。

如果您指定一个文件,您将仅处理该文件。 如果指定 ...,您将处理工作目录下的文件。 如果您不指定文件,它将适用于工作区中的所有文件。

You can use p4 resolve -am [file ...] which will skip the files with conflicts.

If you specify a file, you will work on that file only. If you specify ..., you will work on files below your working directory. If you do not specify a file, it will work on all of the files in your workspace.

千寻… 2024-08-05 08:48:52

我没有足够的声誉来向已接受的答案添加评论,因此我将在新答案中添加信息。

使用 Perforce 2013.2,您确实可以提供一个更改列表编号来解析,以限制对该更改列表中的文件的操作。

p4 resolve -c changelist#

I do not have enough reputation to add a comment to the accepted answer so I'll add information in a new answer.

With Perforce 2013.2 you can indeed provide a changelist number to resolve to limit the operation to the files in that changelist.

p4 resolve -c changelist#
孤君无依 2024-08-05 08:48:52

我按照以下步骤从命令行执行此操作。

  1. 在 perforce 客户端中,选择工作区中的文件夹。
  2. 选择文件-> 在此处打开终端窗口。终端将在步骤 1 中选择的同一目录中打开。
  3. 使用选项 -n 执行试运行

p4解析-c 1234 -n

  1. 要接受来自 perforce 的自动合并,请使用 -am 选项,自动模式。 自动接受建议的文件修订版:如果它们与基础版本相同,则接受您的; 如果你的与base相同,接受他们的; 如果你和他们的基础不同,并且你和他们之间不存在冲突; 接受合并; 否则,您的和他们的之间存在冲突,因此请跳过此文件。

p4解析-c 1234 -am

I follow these steps, to do it from command line.

  1. In perforce client, Select the folder in workspace.
  2. Select File -> Open Terminal Window Here.Terminal will open in the same directory which is selcted in step 1.
  3. Perform a dry run using option -n :

p4 resolve -c 1234 -n

  1. To accept automatic merge from perforce use -am option, Automatic Mode. Automatically accept the recommended file revision: if theirs is identical to base, accept yours; if yours is identical to base, accept theirs; if yours and theirs are different from base, and there are no conflicts between yours and theirs; accept merge; otherwise, there are conflicts between yours and theirs, so skip this file.

p4 resolve -c 1234 -am

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文