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

RE: Need Help

From: Erik Hemdal <erik_at_comprehensivepower.com>
Date: Thu, 23 Apr 2009 13:30:10 -0400

-----Original Message-----
From: Jewel Nuruddin [mailto:jungi_unavailable_at_yahoo.com]
Sent: Thursday, April 23, 2009 11:25 AM
To: Ryan Schmidt
Cc: users_at_subversion.tigris.org
Subject: Re: Need Help

yes I want to get mail only from certain path.
in my post-commit file I write the following code

REPOS="$1"
REV="$2"
/usr/local/bin/commit-email.pl "$REPOS" "$REV" --from admin_at_game.com -s "SVN
commit in packages" subversion-users_at_game.com

and I use commit-email.pl file and it give me notification mail for every
repository
so if you can would you please kindly give me some solution.
Thank you very much for great help
 
Jewel, I think I ran into the same problem you have. The commit-email.pl
script is documented to take an argument for a path regular expression. But
when I tested it, I could not discover the right syntax to make it work and
do what you describe. I burned a lot of time trying to sort it out.
 
The default regex seems to be set at line 742, in sub new_project.(look for
the value associated with the key match_regex). I changed that default from
'.' to 'trunk' and got the script to notify only on trunk changes.
Obviously, this is changing the default behavior, but all I want is trunk
notifications anyway.
 
I'm sure there's a smarter, better fix, but this worked for me. Maybe it
will work for you, too.
 
Erik

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1880392

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-23 19:31:16 CEST

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