beyondcompareでdiff SVNの中のコードを使います


1.スクリプトファイルmydiffを作成します.sh.
ディレクトリで~/.subversions/で、新しいスクリプトファイルmydiff.sh、内容は以下の通りです.
#!/bin/sh

# Configure your favorite diff program here.
DIFF="/usr/bin/bcompare"
# DIFF="/usr/bin/meld"
# DIFF="/usr/bin/kompare"
# DIFF=env LANG=zh_CN.UTF-8 WINEPREFIX="/home/borqs/.wine" wine "C:\\Program Files\\Beyond Compare 2\\BC2.exe"

# Subversion provides the paths we need as the sixth and seventh 
# parameters.
LEFT=${6}
RIGHT=${7}

# Call the diff command (change the following line to make sense for
# your merge program).
$DIFF $LEFT $RIGHT 

# Return an errorcode of 0 if no differences were detected, 1 if some were.
# Any other errorcode will be treated as fatal.
return 0

実行可能権限を追加する.
2.configファイルを修正する.
目次変更~/.subversions/の下のファイルconfigは、次の行に追加されます.
diff-cmd = /home/zzq/.subversion/mydiff.sh