SVN 电子邮件报告

SVN 电子邮件报告

我使用 subversion.com 来处理我的个人事务,每当提交一次,我都会收到一份详细的报告,说明具体更改了什么以及谁更改了。我读了一些关于钩子的内容,知道这很可能是一个钩子,但它似乎不是 Subversion 的默认功能。听起来我必须对其进行编程...我的结论正确吗?或者我可以通过输入几个电子邮件来“设置”它吗?

请告诉我它包含在内:)

更新

这正是我要找的...你们有人知道我可以在哪里找到可以做到这一点的预建脚本吗?

$ svn diff
Index: bar.c
===================================================================
--- bar.c (revision 3)
+++ bar.c (working copy)
@@ -1,7 +1,12 @@
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+#include <stdio.h>
  int main(void) {
-   printf("Sixty-four slices of American Cheese...\n");
+   printf("Sixty-five slices of American Cheese...\n");
  return 0;
  }
Index: README
===================================================================
--- README (revision 3)
+++ README (working copy)
@@ -193,3 +193,4 @@
+Note to self: pick up laundry.
Index: stuff/fish.c
===================================================================
--- stuff/fish.c (revision 1)
+++ stuff/fish.c (working copy)
-Welcome to the file known as 'fish'.
-Information on fish will be here soon.
Index: stuff/things/bloo.h
===================================================================
--- stuff/things/bloo.h (revision 8)
+++ stuff/things/bloo.h (working copy)
+Here is a new file to describe
+things about bloo.

答案1

您提到的提交前/提交后挂钩功能确实包括在内。但是,生成和发送提交电子邮件所需的脚本却不包括在内。不过,在 Google 上搜索一下,你肯定会找到大量示例。

相关内容