SVN: toys/cvsstats/email2sql.py

pawelz pawelz at pld-linux.org
Sun Feb 28 01:45:03 CET 2010


Author: pawelz
Date: Sun Feb 28 01:45:02 2010
New Revision: 11214

Modified:
   toys/cvsstats/email2sql.py
Log:
- handle "remove file" commits


Modified: toys/cvsstats/email2sql.py
==============================================================================
--- toys/cvsstats/email2sql.py	(original)
+++ toys/cvsstats/email2sql.py	Sun Feb 28 01:45:02 2010
@@ -15,8 +15,7 @@
   "---- Files affected:\n"
   "(?P<files>(.*\n)*)\n"
   "^---- Diffs:\n"
-  "(?P<diff>(.*\n)*)\n"
-  "^---- CVS-web:\n",
+  "(?P<diff>(.*\n)*)\Z",
   re.MULTILINE
 )
 
@@ -64,6 +63,9 @@
 
     for line in diff.splitlines():
 
+      if line == "---- CVS-web:":
+        break;
+
       # is it a beginig of the new file?
       m = rindex.match(line)
       if (m):


More information about the pld-cvs-commit mailing list