Aide ABDiff

Intégration Subversion

Vous pouvez utiliser abd comme outil externe diff/merge dans Subversion en ajoutant de petits scripts wrapper.

1) Créer les scripts wrapper

Créer ~/bin/svn-diff-abd :

#!/bin/sh
prev=""
last=""
for arg in "$@"; do
  prev="$last"
  last="$arg"
done
exec abd --local "$prev" --remote "$last"

Créer ~/bin/svn-merge-abd :

#!/bin/sh
BASE="$1"
THEIRS="$2"
MINE="$3"
MERGED="$4"
exec abd --base "$BASE" --local "$MINE" --remote "$THEIRS" --result "$MERGED"

Rendre les deux exécutables :

chmod +x ~/bin/svn-diff-abd ~/bin/svn-merge-abd

2) Configurer Subversion

Modifier ~/.subversion/config :

[helpers]
diff-cmd = /Users/you/bin/svn-diff-abd
merge-tool-cmd = /Users/you/bin/svn-merge-abd

3) L’utiliser

Notes