开发者

svnnotify author field

开发者 https://www.devze.com 2023-01-07 21:27 出处:网络
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?Authen

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号