incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r709637 - /incubator/public/trunk/clutch.py
Date Sat, 01 Nov 2008 03:39:07 GMT
Author: crossley
Date: Fri Oct 31 20:39:07 2008
New Revision: 709637

URL: http://svn.apache.org/viewvc?rev=709637&view=rev
Log:
Use a regular expression to skip counting certain svn revisions.

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=709637&r1=709636&r2=709637&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Fri Oct 31 20:39:07 2008
@@ -77,6 +77,7 @@
 commentsRE = re.compile("(.*) *\(([^)]+)\)")
 startDateRE = re.compile("([0-9]+)-0?([0-9]+)-?0?([0-9]+)?")
 statusLogRE = re.compile("^([0-9]+)-0?([0-9]+)-0?([0-9]+)")
+svnRevisionSkipRE = re.compile("707389|708087|708420|708791|709356")
 mailListRE = re.compile("^([-a-z0-9]+)@([a-z]+)\.apache\.org")
 mailListNameRE = re.compile("^([a-z]+)-([-a-z0-9]+)")
 newCommitterRE = re.compile("[nN]ew committer")
@@ -576,15 +577,8 @@
   count3 = 0
   for row in dom.getElementsByTagName("logentry"):
     # Skip counting various commits which were to standardise the status files.
-    if row.getAttribute('revision') == "707389":
-      continue
-    if row.getAttribute('revision') == "708087":
-      continue
-    if row.getAttribute('revision') == "708420":
-      continue
-    if row.getAttribute('revision') == "708791":
-      continue
-    if row.getAttribute('revision') == "709356":
+    matchSvnSkip = re.search(svnRevisionSkipRE, row.getAttribute('revision'))
+    if matchSvnSkip:
       continue
     rowCounter += 1
     date = getText(row.getElementsByTagName("date")[0].childNodes)



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message