如何让 Subversion (SVN) 在签到时发送电子邮件? [英] How do I make Subversion (SVN) send email on checkins?

查看:17
本文介绍了如何让 Subversion (SVN) 在签到时发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直发现签入(提交)邮件对于跟踪其他人在代码库/存储库中所做的工作非常有用.如何设置 SVN 以在每次提交时通过电子邮件发送分发列表?

I've always found checkin (commit) mails to be very useful for keeping track of what work other people are doing in the codebase / repository. How do I set up SVN to email a distribution list on each commit?

我在 Windows 上运行客户端,在 Linux 上运行 Apache Subversion 服务器.不过,以下针对各种平台的答案可能对其他人有用.

I'm running clients on Windows and the Apache Subversion server on Linux. The answers below for various platforms will likely be useful to other people though.

推荐答案

您使用 提交后钩子.这是指南.

这是一个在每次提交后发送电子邮件的示例 Ruby 脚本:commit-email.rb

Here's a sample Ruby script that sends an email after each commit: commit-email.rb

这篇关于如何让 Subversion (SVN) 在签到时发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆