Perforce auto resolve from the command line?

99封情书 提交于 2019-12-21 07:58:09

问题


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?


回答1:


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.




回答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.

p4 resolve -c changelist#


来源:https://stackoverflow.com/questions/1188491/perforce-auto-resolve-from-the-command-line

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