[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Need help to use Commit-email.pl

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-01-10 15:35:45 CET

On Mon, 2005-10-01 at 13:47 +0000, Sri wrote:
> My post-commit script consist of
>
> REPOS="$1"
> REV="$2"
> /path/to/repos/hooks/commit-email.pl "$REPOS" "$REV"
> spers@rediffmail.com
>
> im getting the following error when i try to execute post-commit
> script.....
>
> commit-email.pl: revision number `' must be an integer > 0.
> usage: /apps/svnroot/svn1.1.1-repos/sample/hooks/commit-email.pl REPOS
> REVNUM [[-m regex] [options] [email_addr ...]] ..
> options are
> --from email_address Email address for 'From:' (overrides -h)
> -h hostname Hostname to append to author for 'From:'
> -l logfile Append mail contents to this log file
> -m regex Regular ex-pression to match committed path
> -r email_address Email address for 'Reply-To:'
> -s subject_prefix Subject line prefix

This post should help:
http://svn.haxx.se/users/archive-2005-01/0435.shtml

Watch your quoting of the variables, ie you probably need some {}'s and
tell the script what language it is running in.

Chris

-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
09:34:12 up 1 day, 20:15, 4 users, load average: 0.34, 0.63, 0.51 
http://www.fsf.org/philosophy/no-word-attachments.html

Received on Mon Jan 10 15:43:32 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.