2013-07-31 35 views
3

我試圖設置SemanticMerge作爲我在Perforce中C#的diff工具。在Perforce中使用語義合併作爲diff工具

我已經配置Perforce公司與exe文件,並與參數-s=%1 -d=%2 -l=csharp

diff tool settings

但是,當我嘗試diff的C#文件我收到錯誤:

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

error message

所選文件不在該位置(文件名%1也不在其中)...

我無疑是慢,我試圖RTFM,但我也希望有人在這裏可以看到我缺少

回答

0

在參數-s=%1 -d=%2中使用等於將會阻止將%1%2解釋爲文件路徑,因此您的奇怪錯誤。 semanticmergetool也接受參數與空間:-s "$LOCAL" -d "$REMOTE"和位置參數:"$LOCAL" "$REMOTE",所以你可以爲實例設置:

Preferences > Diff > Default diff application: Other application 
Location: .../semanticmerge/semanticmergetool.exe 
Arguments: %1 %2 

設置semanticmerge爲合併工具,使用Arguments: %1 %2 %b %r

參考: https://users.semanticmerge.com/documentation/how-to-configure/semanticmerge-configuration-guide.shtml#HowtoconfigurewithPerforce