We use svnnotify (i.e. SVN::Notify) in our svn post-commit hook. Is it possible to include the userid of the author of the commit as the displayed name in the author field of the resulting email? Authentication is through mod_auth_mysql
. We don't want the author to be "userid@domain of svn server" because there are no such email addresses - the committers all have external email addressses. I开发者_如何转开发'd like something like "userid via proj-svn" or something similar so that people can quickly identify who is responsible for the commit.
You could modify the post-commit hook to read the author userid from svnlook. Roughly:
my $svnlook = "/bin/svnlook";
my @info = `$svnlook info $repopath -r $revnum`;
my $author = shift @info;
精彩评论