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

Re: [PATCH] Setting email in hook scripts

From: Blair Zajac <blair_at_orcaware.com>
Date: 2002-12-13 02:53:13 CET

Gustavo Niemeyer wrote:
> * hook-scripts/commit-email.pl
> * hook-scripts/propchange-email.pl
> Include new -f option which, if set, will override the -h option
> and set the email 'From:' to whatever is provided as the option
> argument.

Thanks. Sorry this wasn't that easy to get into the tree, hopefully
the next patch will be. Applied in rev 4111, with the --from change.

Also, fyi with when setting a variable to another one in Perl, you
don't need "'s around the variable. In some cases, you can change
the variable, such if its an object, because it'll stringify the
variable and remove its objectness.

> + if ($from_addr =~ /\w/)
> + {
> + $mail_from = "$from_addr";
> + }

Best,
Blair

-- 
Blair Zajac <blair@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 13 02:53:38 2002

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

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