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

Weird commit-email.pl issues

From: Kevin Old <kevinold_at_gmail.com>
Date: 2005-03-01 04:57:38 CET

Hello everyone,

I've searched the archives for hours and still can't get the
post-commit and commit-email.pl working correctly.

First, I'm doing all this on a test box running FC1 with subversion 1.1.3.

I have a test repository in /svnrep/testproj.

My post-commit file looks like:

REPOS="$1"
REV="$2"
echo $REPOS $REV >> /tmp/svn-log
/usr/bin/perl $REPOS/hooks/commit-email.pl "$REPOS" "$REV" -m
"testproj.*" --from kold@kold.homelinux.com kevinold@gmail.com
echo "end of commit - email should be sent" >> /tmp/svn-log

/tmp/svn-log looks like:
/svnrep/testproj 14
end of commit - email should be sent

I'm running everything as root right now and am accessing my
repository over svn+ssh.

Here's the weird part:

Currently, my repository is up to revision 14, and if I were to
execute via the command line "./post-commit /svnrep/testproj 14" I'd
be returned to the command line and the two lines would be printed in
/tmp/svn-rep, but no email would be sent.

I discovered by mistake that if I put an invalid revision (i.e. 15) an
email would be sent that looks like this:

Author: /svnrep/testproj/hooks/commit-email.pl: `/usr/bin/svnlook info
/svnrep/testproj -r 15' failed with this output:
Date: svn: No such revision 15
New Revision: 15

Modified:
   
   
Log:

/svnrep/testproj/hooks/commit-email.pl: `/usr/bin/svnlook diff
/svnrep/testproj -r 15' failed with this output:
svn: No such revision 15

This is too weird....

Can anyone offer help?

Any help is appreicated!

Kevin

-- 
Kevin Old
kevinold@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 1 05:00:10 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.