diff --git a/HowtoSVN.md b/HowtoSVN.md index 722a6941..43f07966 100644 --- a/HowtoSVN.md +++ b/HowtoSVN.md @@ -129,6 +129,15 @@ Repository has not been enabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook ~~~ +Si l’on veut restreindre la modification des révisions a un utilisateur en particulier, il faut ajouter ceci dans le hook `pre-revprop-change` : + +~~~ +if [ ! "$USER" = "user" ]; then + echo "Changing revision properties is only allowed to mmarmolle." >&2 + exit 1 +fi +~~~ + ## FAQ Lorsque l'on obtient un message du type :