Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用SemanticMerge配置文本合并以在Mercurial中使用P4Merge_Mercurial_P4merge_Semantic Merge - Fatal编程技术网

使用SemanticMerge配置文本合并以在Mercurial中使用P4Merge

使用SemanticMerge配置文本合并以在Mercurial中使用P4Merge,mercurial,p4merge,semantic-merge,Mercurial,P4merge,Semantic Merge,我已经按照中的说明进行了操作,但是它们是为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=$bas

我已经按照中的说明进行了操作,但是它们是为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中的merge命令运行文本合并时,会收到一个错误警报,指出:

Error starting P4Merge
Errors: 'c:\directory\1d37-some-guid.tmp' is (or points to) an invalid file.
是否存在不兼容或我上面的“semantic.args”部分配置不正确

更新 当我在特定更改上单击“合并”按钮时,我收到错误消息。请参见下面的屏幕截图。答案是正确的,不过我应该使用“运行文本合并”按钮运行文本合并


我刚刚测试了语义合并Mercurial集成(将p4merge配置为外部测试合并工具)

这是我的mercurial.ini:

[merge-tools]
semantic.executable = C:/Users/carlos/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
当我执行Hg合并时,会出现语义合并工具,如果我选择“运行文本合并”,文本合并工具工作正常。似乎您的问题在于P4Merge工具的安装。能否尝试使用命令行手动启动P4Merge工具