如何获取包含 diff 链接的 CVS 通知电子邮件?
有没有办法让 CVS 电子邮件通知包含指向我的 ViewCVS 服务器的链接,在其中单击链接可以显示差异?
目前我的 loginfo 文件只有这样的条目 ^安装猫| /usr/bin/Mail -s "[cvs-update 安装]" [电子邮件受保护]
然后我们收到的电子邮件(我想是相当标准的)包含提交消息和更改的文件列表。
干杯, 罗
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
http://www.badgers-in-foil.co.uk/projects /cvsspam/
似乎是这样做的方法
http://www.badgers-in-foil.co.uk/projects/cvsspam/
Seems to be the way to do this
或 ActivityMail
http://search.cpan.org/~dwheeler/activitymail- 1.26/bin/activitymail
Or ActivityMail
http://search.cpan.org/~dwheeler/activitymail-1.26/bin/activitymail
我不知道 ViewCVS 是否可以做到这一点,但我知道 WebSVN 可以做到这一点,尽管这需要您从 CVS 转换为 SVN。
这是 来自我的 WebSVN 差异的链接文本。如果 ViewCVS 没有办法做到这一点,您也可以自己编写 ViewCVS 的扩展,使用 enscript 突出显示
EDTI:ViewCVS 支持此功能,您似乎可以通过扩展提交后挂钩脚本来实现此目的(我假设这就是您发送通知电子邮件的方式)。
格式似乎是:
例如,来自gentoo的viewcvs存储库。
由于 diff 的 URL 具有给定的格式,因此您应该能够将每次提交的信息处理为一系列链接,每个链接都指向已更改文件的 diff。
希望这有帮助
I don't know if this is possible with ViewCVS, but I know it's possible with WebSVN, though that would require you to convert from CVS to SVN.
Here's an link text from my WebSVN of a diff. It's probably also possible for you to write an extension to ViewCVS yourself if ViewCVS doesn't have a way to do it, using enscript highlighting
EDTI: This is supported in ViewCVS, and it seems that you could probably do this by extending your post-commit hook script (I'm assuming that's how you doing notification emails).
The format seems to be:
For example, from gentoo's viewcvs repository.
Since the URL to the diff has a given format, you should be able to process the information from each commit into a series of links, each link pointing to a diff for a changed file.
Hope that's helpful