Bonjour,
après plusieurs recherche sur Internet j'ai trouvé un hook de pre-commit qui réalise ce que je souhaite mais celui-ci est pour Linux.
Il permet de bloquer les commit sur le répertoire tags.
Or mes dépôts de Subversion se trouve sous Windows.
Je cherche donc à transcrire ce script en version "Windows"
Merci d'avance pour votre aideCode:
1
2
3
4
5
6
7
8
9
10
11
12
13 # Check for modification of tags. # Reject tag modifications except creation and deletion SVNLOOK=/usr/bin/svnlook echo "=============== changed ================" >>/tmp/pre-commit.log $SVNLOOK changed -t "$TXN" "$REPOS" >>/tmp/pre-commit.log $SVNLOOK changed -t "$TXN" "$REPOS" | grep "tags/" >/dev/null if [ $? -eq 0 ] ; then $SVNLOOK changed -t "$TXN" "$REPOS" | egrep "^[AD][[:space:]]+(.*/)?tags/[^/]+/$" >/dev/null if [ $? -ne 0 ] ; then echo >&2 "Les tags ne sont pas modifiables" exit 1 fi fi