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): _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit