Full list of resolve options
The p4 resolve
command offers the following
options:
Option | Action | Remarks |
---|---|---|
|
Help |
Display help for |
|
Accept automatically |
Accept the auto-selected file:
|
|
Accept edit |
If you edited the merge file (by selecting |
|
Accept merge |
Accept merge into the client workspace as the resolved revision. The version in the client workspace is overwritten. |
|
Accept theirs |
Accept theirs into the client workspace as the resolved revision. The version in the client workspace is overwritten. |
|
Accept yours |
Accept yours into the client workspace as the resolved revision, ignoring changes that might have been made in theirs. |
|
Diff |
Show diffs between merge and yours. |
|
Diff merge |
Show diffs between merge and base. |
|
Diff theirs |
Show diffs between theirs and base. |
|
Diff yours |
Show diffs between yours and base. |
|
Edit merged |
Edit the preliminary merge file generated by Helix Core Server. |
|
Edit theirs |
Edit the revision in the depot that the client revision conflicts with (usually the head revision). This edit is read-only. |
|
Edit yours |
Edit the revision of the file currently in the workspace. |
|
Merge |
Invoke the command |
|
Skip |
Skip this file and leave it scheduled for resolve. |
The merge file is generated by the Helix Core Server, but the differences displayed by dy
,
dt
, dm
, and d
are generated by
your computer’s diff program. To configure another diff program to be
launched when you choose a d
option during a resolve, set
P4DIFF
. For more details, see
Diff files.
Example Resolving file conflicts
To resolve conflicts between his work on a Jam README
file and Gale’s work on the same file, Bruno types p4 resolve
//Acme/dev/jam/README
and sees the following:
Diff chunks: 0 yours + 0 theirs + 0 both + 1 conflicting Accept(a) Edit(e) Diff(d) Merge (m) Skip(s) Help(?) e: e
Bruno sees that he and Gale have made a conflicting change to the
file. He types e
to edit the merge file and searches for
the difference marker >>>>
. The following text
is displayed:
Jam/MR (formerly "jam - make(1) redux") /+\ >>>> ORIGINAL README#26 +\ Copyright 1993, 1997 Christopher Seiwald. ==== THEIRS README#27 +\ Copyright 1993, 1997, 2004 Christopher Seiwald. ==== YOURS README +\ Copyright 1993, 1997, 2005 Christopher Seiwald. <<<< \+/
Bruno and Gale have updated the copyright date differently. Bruno
edits the merge file so that the header is correct, exits from the
editor and types am
. The edited merge file is written to
the client workspace, and he proceeds to resolve the next file.
When a version of the file is accepted during a resolve, the file in the workspace is overwritten, and the new client file must still be submitted to the depot. New conflicts can occur if new versions of a file are submitted after you resolve but before you submit the resolved files. This problem can be prevented by locking the file before you perform the resolve. For details, see Locking files.