Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I use subversion.com for my personal stuff and whenever a commit is made I get a detailed report of what exactly changed and who changed it. I've read a bit into hooks and understand that this is likely a hook but it seems like it's not default functionality included with Subversion. It sounds like it's something I'm going to have to program... am I correct with that conclusion or can I just "set it up" by entering a few emails?

Please tell me it's included :)

Update

This is exactly what I'm looking for... do any of you know where I can find pre-built scripts that do exactly this?

$ 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.
share|improve this question

1 Answer 1

up vote 1 down vote accepted

The pre/post commit hooks functionality you mentioned are indeed included. The scripts necessary to generate and send commit emails, however, are not. Google around and you're sure to find a plethora of example, though.

share|improve this answer
    
Such as this Ruby post-commit script: gurge.com/blog/2006/09/10/… –  kaerast Jun 11 '10 at 16:57
    
I'm not quite looking for examples, more of a definite solution that I can merely copy and paste... –  Webnet Jul 12 '10 at 13:07
    
Webnet - the likelihood of you finding a copy/paste solution that does exactly what you want is pretty small. Check out some of the example scripts out there. Perhaps there's one that you will be able to copy/paste. If not, figure out what modifications you need to make and see it as a learning experience. –  EEAA Jul 12 '10 at 15:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.