How to use p4merge as the merge/diff tool for Mercurial?

后端 未结 6 824
忘掉有多难
忘掉有多难 2021-01-30 16:54

Does anyone know how to setup Mercurial to use p4merge as the merge/diff tool on OS X 10.5?

6条回答
  •  面向向阳花
    2021-01-30 17:30

    Maybe because I'm working on Windows, but the proposed solution didn't work for me. Instead, the following does work.

    In your ~/.hgrc/ / Mercurial.ini, I applied the following changes:

    Enabled "ExtDiff" extension:

    [extensions]
    hgext.extdiff =
    

    Added P4 extdiff command:

    [extdiff]
    cmd.p4diff = p4merge
    

    Configured it as the default visual diff tool:

    [tortoisehg]
    vdiff = p4diff
    

提交回复
热议问题