强制从命令行自动解析?
当我尝试在集成中解析大量文件时,P4V 一直困扰着我。 我希望能够在命令行中执行此操作。
以下是 P4V 中的步骤:
- 右键单击 CL。
- 选择“解析文件...”将出现一个对话框。
- 选择“如果不存在冲突,则合并您和他们的”。
- 单击“自动”。
有人可以将其转换为具有正确参数的 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:
- Right-click the CL.
- Choose "Resolve Files..." A dialog will appear.
- Choose "Merge yours and theirs if no conflicts exist".
- Click Auto.
Can someone translate this into a p4 command line command with correct arguments?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用
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.我没有足够的声誉来向已接受的答案添加评论,因此我将在新答案中添加信息。
使用 Perforce 2013.2,您确实可以提供一个更改列表编号来解析,以限制对该更改列表中的文件的操作。
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.
我按照以下步骤从命令行执行此操作。
自动模式。 自动接受建议的文件修订版:如果它们与基础版本相同,则接受您的; 如果你的与base相同,接受他们的; 如果你和他们的基础不同,并且你和他们之间不存在冲突; 接受合并; 否则,您的和他们的之间存在冲突,因此请跳过此文件。
I follow these steps, to do it from command line.
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.