Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
P4LOG
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4PAGER

P4MERGE


Description

A third-party merge program to be used by p4 resolve's merge option.

Usage Notes

Used by
Perforce Client?

Used by
Perforce Server

Command-Line Alternative
Can be set in P4CONFIG file?

Yes

No

None

Yes

Value if not Explicitly Set

Operating System
Value

All

If the MERGE environment variable (or registry variable on NT, as set by p4 set) is set, then its value; otherwise, nothing.

Examples

Prescient Software's MergeRight

Notes

The program represented by the program name stored in this variable is used only by p4 resolve's merge option. When p4 resolve calls this program, it will pass in four arguments, representing (in order) base, theirs, and yours, with the fourth argument holding the resulting merge file.

If the program you use takes its arguments in a different order, set P4MERGE to a shell script or batch file that reorders the arguments and calls the proper merge program with the arguments in the correct order.

If you are running under NT, you must call a batch file, even if your third-party merge program already accepts arguments in the order provided by Perforce. This is due to a limitation within NT. If you were using NT and wanted to use a program called MERGE.EXE, your batch file might look something like this:


Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
P4LOG
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4PAGER
Please send comments and questions about this manual to [email protected].
Copyright 1997, 2000 Perforce Software. All rights reserved.
Last updated: 12/21/00