I commit all my changes in use of svn (from command line). The problem I have, is that I always forget about code chill, before milestone for example, and I still commit. I just can't think about these deadline for some reason. Can anyone tell me how can I implement a script that will print me a question on command line after I type "svn commit"?
Asked
Active
Viewed 93 times
0
-
Your release manager should be controlling this from the server end. It should not be up to the individual developer(s) to protect the repository. – alroc Sep 02 '13 at 17:34
2 Answers
1
Add this to your ~/.bashrc
:
function svn {
case $1 in
ci)
;;
commit)
;;
*)
return /usr/bin/svn $@
;;
esac
echo "Did you ... ?"
read answer
if [ "$answer" = "yes" ] ; then
/usr/bin/svn $@
fi
}

hek2mgl
- 152,036
- 28
- 249
- 266