tags:

views:

435

answers:

1

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?

+4  A: 

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.

akf
It's not possible to specify a Pending CL for the files with the resolve command?
Fostah
No, it doesnt seem so. One option is to wrap it in a `for` loop in a batch, taking the changelist from the command line and iterating over the files returned by `p4 describe changelist#`, passing them to `p4 resolve -am`
akf