toggle Cinema 07 Apr 2009

Notificando los cambios del repositorio via email Posted by Insane in Bash, Metodologias de trabajo | No responses

Cuantas veces nuecesitamos saber en el momento justo que cambios se han subido al repositorio, esto por algun otro medio distinto al mensajito “subi cambios” de nuestro partner, bueno con svn es bastante facil recibir este tipo de notificaciones, emepezemos:

1.localiza la ruta del repositorio , de no conocerla puedes hacer algo parecido a:

ps -fea | grep svn
cd $REP

2.Copia el template y hazlo ejecutable

cp /hooks/after-commit.phtml /hooks/after-commit
chmod +x /hooks/after-commit

3.Modifica el quien y que notificar editando el siguiente archivo.

#$REP/hooks/after-commit
$PATH_SCRIPT/commit-email.pl "$REPOS" "$REV" -s "SVN Notification: " --from Svn_Dev@myproject.com micorreo@midominio.com

Svn nos permite notificar varios eventos (precommit,startcommit,preunlock,postunlock … ) , dejo el link para cualquier interesado:

Hooks de svn.
http://www.petefreitag.com/item/244.cfm

  • Share/Bookmark

Promote this post

Would you like to add this post to your bookmarks? Come on, do not miss any updates and stay tuned.
Please share with us!

This entry no have comments but you can be first .

Leave a Reply ( Guest )

(*)

(will not be published) (*)