i |
Autoriser la modification des propriétés |
Il faut aller dans le répertoire Hooks du dépôt (...\hubiC\Repository\hooks) et changer le script "pre-revprop-change.tmpl" pour autoriser la modification des propriétés :
Exemple pour windows :
Renommer pre-revprop-change en pre-revprop-change.bat et mettre le code suivant :
rem REPOS="$1"
rem REV="$2"
rem USER="$3"
rem PROPNAME="$4"
rem ACTION="$5"
rem Property changes are not versioned, so you will permanently loose the old message.
rem Only allow log messages to be changed.
IF %5 EQU M GOTO CONT1
GOTO FAIL
:CONT1
IF %4 EQU svn:log GOTO OK
:FAIL
echo "Changing revision properties other than svn:log is prohibited" >&2
exit 1
:OK
exit 0
Ce batch sera exécuté par TortoiseSVN chaque fois qu'un commentaire est modifié.