incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r959871 - /incubator/public/trunk/clutch.py
Date Fri, 02 Jul 2010 06:33:37 GMT
Author: crossley
Date: Fri Jul  2 06:33:37 2010
New Revision: 959871

URL: http://svn.apache.org/viewvc?rev=959871&view=rev
Log:
Enable counting of a group of new committers in the Status "News" section.
See example in "chemistry" project: ... added as new committers (6)
Bettter detection of hints for resources. Some projects use links, others do not.

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=959871&r1=959870&r2=959871&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Fri Jul  2 06:33:37 2010
@@ -97,13 +97,13 @@ statusTallyDate3 = gatherDate - delta
 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|709648|711153|744365|761864|788239|796085|804825|894972|940767")
+svnRevisionSkipRE = re.compile("707389|708087|708420|708791|709356|709648|711153|744365|761864|788239|796085|804825|894972|940767|959869")
 mailListRE = re.compile("^([-a-z0-9]+)@([a-z]+)\.apache\.org")
 mailListNameRE = re.compile("^([a-z]+)-([-a-z0-9]+)")
 mailListNameUrlRE = re.compile("/([a-z]+)-([-a-z0-9]+)/$")
 graduatedRE = re.compile("([-a-z0-9]+).html")
 urlHttpRE = re.compile("^http")
-newCommitterRE = re.compile("[nN]ew [cC]ommitt?er")
+newCommitterRE = re.compile("[nN]ew [cC]ommitt?ers? ?\(?([0-9]+)?")
 releasesRE = re.compile("dist/incubator/([-a-z0-9]+)/")
 
 linkReportingSchedule = '<a href="http://wiki.apache.org/incubator/ReportingSchedule">ReportingSchedule</a>'
@@ -320,6 +320,8 @@ for k in projectNames:
       if cell.attributes.has_key('id'):
         values = [getText(item.childNodes) for item in cell.childNodes]
         value = " ".join(values).strip()
+        if value == "":
+          value = getText(cell.childNodes).strip()
         if optionVerbose:
           print "DEBUG: Hint: %(a)s=%(b)s" % {'a': cell.getAttribute('id'), 'b': value}
         if cell.getAttribute('id') == "mail-dev":
@@ -373,7 +375,10 @@ for k in projectNames:
         for line in section.toxml().splitlines():
           matchNewCommitter = re.search(newCommitterRE, line)
           if matchNewCommitter:
-            projects[k]['numberCommittersNew'] += 1
+            if matchNewCommitter.group(1):
+              projects[k]['numberCommittersNew'] += int(matchNewCommitter.group(1))
+            else:
+              projects[k]['numberCommittersNew'] += 1
     dom.unlink()
   # end of if status file exists
 



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


Mime
View raw message