http://www.semanticmerge.com/sm-guides/main.shtml#HowtoconfigurewithMercurialの指示に従いましたが、それらは kdiff3 用に構成されており、p4merge を使用してテキストのマージを行いたいと考えています。現在の mercurial.ini は次のようになります。
[merge-tools]
semantic.executable = C:\Users\JP\AppData\Local\PlasticSCM4\semanticmerge\semanticmergetool.exe
semantic.premerge=False
semantic.binary=False
semantic.args=-b=$base -s=$local -d=$other -r=$output -l=csharp -edt="p4merge.exe ""#sourcefile"" ""#destinationfile""" -emt="p4merge.exe -le 'win' -dl ""#basefile"" ""#sourcefile"" ""#destinationfile"" ""#output"""
semantic.gui=True
semantic.checkconflicts=True
現在の構成では、.cs で終わるファイルに競合がある場合、SemanticMerge は期待どおりに動作しますが、SemanticMerge でマージ コマンドを使用してテキスト マージを実行すると、次のようなエラー アラートが表示されます。
Error starting P4Merge
Errors: 'c:\directory\1d37-some-guid.tmp' is (or points to) an invalid file.
非互換性がありますか、それとも上記の「semantic.args」セクションが正しく構成されていませんか?
更新 特定の変更でマージ ボタンをクリックすると、エラーが発生します。以下のスクリーンショットを参照してください。答えは正しいですが、「テキスト マージの実行」ボタンを使用してテキスト マージを実行する必要があります。