perforcesemantic-merge

Using Semantic merge as diff tool in Perforce


I'm trying to set up SemanticMerge as my diff tool for C# in Perforce.

I've configured perforce with the exe and with the arguments -s=%1 -d=%2 -l=csharp

diff tool settings

But when I try to diff a C# file I receive the error:

Could not find file c:\Program Files Perforce\%1

error message

The selected file is not in that location (nor is its filename %1)...

I am no doubt being slow and am trying to RTFM but am also hoping someone here can see what I'm missing


Solution

  • A user on twitter pointed me at a PDF which I can't believe I hadn't previously managed to find

    http://www.semanticmerge.com/documents/SemanticMerge-Perforce.pdf

    In short it's necessary to create a batch file to launch external diff and merge tools in Perforce.