[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to send email notifications on commits
From: |
Jenn Vesperman |
Subject: |
Re: how to send email notifications on commits |
Date: |
20 Jun 2003 23:13:43 +1000 |
On Fri, 2003-06-20 at 19:32, Tiziana Biondo wrote:
> Hi,
> I'd like to know how to configure the loginfo file to send email
> notifications on commits; I am using WinCVS 1.2 on Windows2000...
> Thanks in advance
> Tiziana
This is one way of doing it:
>
> ______________________________________________________________________
If you want to send email notifications on all commits, try putting
something like this in the loginfo file in the CVSROOT directory of the
repository:
ALL mail -s %s address@hidden
The leftmost text (ALL) matches the directories in the repository. An
'ALL' rule matches every directory, a 'DEFAULT' rule matches anything
that doesn't otherwise have a match, and any other rule is a regular
expression which matches against the repository directories.
The expression ^example, for instance, would match anything where
'example' started the line.
The rest of the line is the mail command. It's just using the shell
command 'mail' - you may, for security's sake, want to make it
/usr/bin/mail or whatever the address of your mail program is.
The %s is a variable that the loginfo file parses - see the 'loginfo'
node of info cvs, or the relevant part of the Cederqvist manual. There
are three loginfo-specific variables. %v and %V are the new and old
version numbers, and %s is the filename.
address@hidden can be replaced with any appropriate mailing list,
or you can use CVS administrative file variables, or the contents of a
shell script.
Jenn V.
--
Essential CVS: http://www.oreilly.com/catalog/cvs/
address@hidden http://anthill.echidna.id.au/~jenn/