You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/07/18 21:33:42 UTC

svn commit: r1691772 - /comdev/reporter.apache.org/trunk/scandist.py

Author: sebb
Date: Sat Jul 18 19:33:42 2015
New Revision: 1691772

URL: http://svn.apache.org/r1691772
Log:
COMDEV-153 - scandist.py - Ignore further commits

Modified:
    comdev/reporter.apache.org/trunk/scandist.py

Modified: comdev/reporter.apache.org/trunk/scandist.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scandist.py?rev=1691772&r1=1691771&r2=1691772&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scandist.py (original)
+++ comdev/reporter.apache.org/trunk/scandist.py Sat Jul 18 19:33:42 2015
@@ -180,6 +180,16 @@ def read_chunk(req):
 # Main listener program #
 #########################
 
+IGNORED_FILES={
+    ".htaccess",
+    "KEYS",
+    "HEADER.html",
+    "README.html",
+    }
+
+def isIgnored(filename):
+    return filename in IGNORED_FILES
+
 # Extract out processing so it can be independently tested
 def processCommit(commit):
     # e.g. {"committer": "sebb", "log": "Ensure we exit on control+C", "repository": "13f79535-47bb-0310-9956-ffa450edef68", "format": 1, 
@@ -200,6 +210,13 @@ def processCommit(commit):
         if match:
             project = match.group(1) 
             if project != "incubator":
+                match = re.match(".*/(.+)$", path)
+                if match:
+                    fileName = match.group(1)
+                    if isIgnored(fileName):
+                        if debug:
+                            print "Ignoring update of file " + path
+                        continue
                 # a single commit can potentially affect multiple projects
                 # create the array if necessary
                 if not project in targets: