Author: metze
Date: 2004-08-18 06:55:01 +0000 (Wed, 18 Aug 2004)
New Revision: 1873

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1873&nolog=1

Log:
sync samba hooks dir with the others

metze

Modified:
   hooks/commit-email.pl
   hooks/post-commit


Changeset:
Modified: hooks/commit-email.pl
===================================================================
--- hooks/commit-email.pl       2004-08-18 06:14:47 UTC (rev 1872)
+++ hooks/commit-email.pl       2004-08-18 06:55:01 UTC (rev 1873)
@@ -35,6 +35,7 @@
   }
 
 use strict;
+use File::Basename;
 use Carp;
 
 ######################################################################
@@ -337,7 +338,8 @@
 # Assembly of log message.
 
 # Put together the body of the log message.
-my $websvn_link = "WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba\&path=/$commondir\&rev=$rev\&nolog=1\n";;
+my $repname = basename($repos);
+my $websvn_link = "WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=$repname\&path=/$commondir\&rev=$rev\&nolog=1\n";;
 my @body;
 push(@body, "Author: $author\n");
 push(@body, "Date: $date\n");

Modified: hooks/post-commit
===================================================================
--- hooks/post-commit   2004-08-18 06:14:47 UTC (rev 1872)
+++ hooks/post-commit   2004-08-18 06:55:01 UTC (rev 1873)
@@ -34,7 +34,8 @@
 
 REPOS="$1"
 REV="$2"
+NAME=`basename ${REPOS}`
 
-${REPOS}/hooks/commit-email.pl -s 'svn commit: samba' "${REPOS}" "${REV}" [EMAIL 
PROTECTED]
-(cd ${REPOS}/hooks; ./hot-backup.py ${REPOS} /backup/svn_backup/samba &)
+${REPOS}/hooks/commit-email.pl -s "svn commit: ${NAME}" "${REPOS}" "${REV}" [EMAIL 
PROTECTED]
+(cd ${REPOS}/hooks; ./hot-backup.py ${REPOS} /backup/svn_backup/${NAME} &)
 ${REPOS}/hooks/synchooks.sh "${REPOS}" "${REV}"

Reply via email to