Author: hertzog Date: 2006-04-13 22:39:56 +0000 (Thu, 13 Apr 2006) New Revision: 111
Added: lib/trunk/hooks/ lib/trunk/hooks/post-commit lib/trunk/hooks/svnmailer.conf Log: New hook for sending SVN commit notices to the PTS. Added: lib/trunk/hooks/post-commit =================================================================== --- lib/trunk/hooks/post-commit 2006-03-26 20:56:18 UTC (rev 110) +++ lib/trunk/hooks/post-commit 2006-04-13 22:39:56 UTC (rev 111) @@ -0,0 +1,39 @@ +#!/bin/sh + +# POST-COMMIT HOOK +# +# The post-commit hook is invoked after a commit. Subversion runs +# this hook by invoking a program (script, executable, binary, etc.) +# named 'post-commit' (for which this file is a template) with the +# following ordered arguments: +# +# [1] REPOS-PATH (the path to this repository) +# [2] REV (the number of the revision just committed) +# +# The default working directory for the invocation is undefined, so +# the program should set one explicitly if it cares. +# +# Because the commit has already completed and cannot be undone, +# the exit code of the hook program is ignored. The hook program +# can use the 'svnlook' utility to help it examine the +# newly-committed tree. +# +# On a Unix system, the normal procedure is to have 'post-commit' +# invoke other programs to do the real work, though it may do the +# work itself too. +# +# Note that 'post-commit' must be executable by the user(s) who will +# invoke it (typically the user httpd runs as), and that user must +# have filesystem-level permission to access the repository. +# +# On a Windows system, you should name the hook program +# 'post-commit.bat' or 'post-commit.exe', +# but the basic idea is the same. +# +# Here is an example hook script, for a Unix /bin/sh interpreter: + +REPOS="$1" +REV="$2" + +/usr/bin/svn-mailer --commit --config /svn/pkg-perl/hooks/svnmailer.conf --repository "$REPOS" --revision "$REV" & + Property changes on: lib/trunk/hooks/post-commit ___________________________________________________________________ Name: svn:executable + * Added: lib/trunk/hooks/svnmailer.conf =================================================================== --- lib/trunk/hooks/svnmailer.conf 2006-03-26 20:56:18 UTC (rev 110) +++ lib/trunk/hooks/svnmailer.conf 2006-04-13 22:39:56 UTC (rev 111) @@ -0,0 +1,45 @@ +# svn-mailer configuration file +# Documentation: http://opensource.perlig.de/svnmailer/doc-1.0/ +[general] +sendmail_command = /usr/sbin/sendmail + +[defaults] +# Mail is sent with alioth account of the person who committed +# You can change that by a mailing list if you prefer +from_addr = %(author)[EMAIL PROTECTED] +# Include Websvn URL in mails +browser_base_url = websvn http://svn.debian.org/wsvn/%(project)s +long_mail_action = 1000000 showurls/truncate +apply_charset_property = yes +# Generate diffs for the following changes (only delete do not generate +# diff, but they are noted in the mail). +generate_diffs = add copy modify propchange +# Why QP encode by default ? I prefer 8 bit. Just disable next line to +# have QP. Other possibility: base64 +mail_transfer_encoding = 8bit +#You can set a reply-to if you want +#reply_to_addr = [EMAIL PROTECTED] +#This is not needed but show as example +#custom_header = X-PTS-Approved: yes + +[bysource] +# This matches any SVN repo on svn.debian.org and extract the +# alioth project name +for_repos = (.*/|)svn/(?P<project>[^/]+)$ +# The following regex needs to be adapted following the structure of +# the repository. You should extend it to match experimental (or similar) +# branches that you may have in a special directory. It extracts the +# source package name +for_paths = packages/(?P<package>[^/]+)/ +# Send to the PTS of the source package. Add any general commit list that +# you have for the project. +to_addr = %(package)[EMAIL PROTECTED] +show_nonmatching_paths = ignore +#commit_subject_template = %(prefix)s r%(revision)s %(part)s - %(files/dirs)s +#commit_subject_prefix = svn commit: + +[otherstuff] +# This section is used to send diff that do not match any particular +# package +ignore_if_other_matches = yes +#to_addr = <generic commit email> _______________________________________________ Collab-maint-devel mailing list Collab-maint-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/collab-maint-devel