From 7a9fd7f2fa111ba8aec3e1506e114fd398e22453 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 22 Nov 2006 04:06:56 +0000 Subject: [PATCH] fix user determination for web commits --- IkiWiki/Rcs/svn.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/IkiWiki/Rcs/svn.pm b/IkiWiki/Rcs/svn.pm index ee5065379..fbf6b2c9e 100644 --- a/IkiWiki/Rcs/svn.pm +++ b/IkiWiki/Rcs/svn.pm @@ -201,6 +201,12 @@ sub rcs_notify () { #{{{ my $user=`svnlook author $config{svnrepo} -r $rev`; chomp $user; + + my $message=`svnlook log $config{svnrepo} -r $rev`; + if ($message=~/$config{web_commit_regexp}/) { + $user=defined $2 ? "$2" : "$3"; + $message=$4; + } my @changed_pages; foreach my $change (`svnlook changed $config{svnrepo} -r $rev`) { @@ -213,11 +219,6 @@ sub rcs_notify () { #{{{ require IkiWiki::UserInfo; send_commit_mails( sub { - my $message=`svnlook log $config{svnrepo} -r $rev`; - if ($message=~/$config{web_commit_regexp}/) { - $user=defined $2 ? "$2" : "$3"; - $message=$4; - } return $message; }, sub {