[pisa-src] r1190 - in trunk/tools/subversion: mailer.py.diff post-commit

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2009 18:12:34 +0200

Author: biurrun
Date: Thu Oct 15 18:12:34 2009
New Revision: 1190

Log:
Use a custom mailer.py script for email commit notification, taken from MPlayer.
Instead of just putting the names of directories where changes occurred into the
subject line, this custom version shows the names of changed files directly.

Added:
   trunk/tools/subversion/mailer.py.diff
Modified:
   trunk/tools/subversion/post-commit

Added: trunk/tools/subversion/mailer.py.diff
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/tools/subversion/mailer.py.diff       Thu Oct 15 18:12:34 2009        
(r1190)
@@ -0,0 +1,26 @@
+--- /usr/share/subversion/hook-scripts/mailer/mailer.py        2009-08-06 
19:39:36.000000000 +0200
++++ mailer.py  2009-10-14 01:29:16.000000000 +0200
+@@ -366,14 +366,15 @@
+     # figure out the changed directories
+     dirs = { }
+     for path, change in self.changelist:
+-      if change.item_kind == svn.core.svn_node_dir:
+-        dirs[path] = None
+-      else:
+-        idx = string.rfind(path, '/')
+-        if idx == -1:
+-          dirs[''] = None
+-        else:
+-          dirs[path[:idx]] = None
++      dirs[path] = None
++#      if change.item_kind == svn.core.svn_node_dir:
++#        dirs[path] = None
++#      else:
++#        idx = string.rfind(path, '/')
++#        if idx == -1:
++#          dirs[''] = None
++#        else:
++#          dirs[path[:idx]] = None
+ 
+     dirlist = dirs.keys()
+ 

Modified: trunk/tools/subversion/post-commit
==============================================================================
--- trunk/tools/subversion/post-commit  Thu Oct 15 18:09:40 2009        (r1189)
+++ trunk/tools/subversion/post-commit  Thu Oct 15 18:12:34 2009        (r1190)
@@ -29,14 +29,14 @@
 # On a Windows system, you should name the hook program
 # 'post-commit.bat' or 'post-commit.exe',
 # but the basic idea is the same.
-# 
+#
 # The hook program typically does not inherit the environment of
 # its parent process.  For example, a common problem is for the
 # PATH environment variable to not be set to its usual value, so
 # that subprograms fail to launch unless invoked via absolute path.
 # If you're having unexpected problems with a hook program, the
 # culprit may be unusual (or missing) environment variables.
-# 
+#
 # Here is an example hook script, for a Unix /bin/sh interpreter.
 # For more examples and pre-written hooks, see those in
 # the Subversion repository at
@@ -47,4 +47,5 @@
 REPOS="$1"
 REV="$2"
 
-/usr/share/subversion/hook-scripts/mailer/mailer.py commit "$REPOS" "$REV"
+#/usr/share/subversion/hook-scripts/mailer/mailer.py commit "$REPOS" "$REV"
+$REPOS/hooks/mailer.py commit "$REPOS" "$REV"

Other related posts:

  • » [pisa-src] r1190 - in trunk/tools/subversion: mailer.py.diff post-commit - Diego Biurrun