community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1694885 - /comdev/reporter.apache.org/trunk/scandist.py
Date Sun, 09 Aug 2015 12:50:28 GMT
Author: sebb
Date: Sun Aug  9 12:50:27 2015
New Revision: 1694885

URL: http://svn.apache.org/r1694885
Log:
Only check for ignored deletions if the path matches (don't need to the debug statement otherwise)

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=1694885&r1=1694884&r2=1694885&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scandist.py (original)
+++ comdev/reporter.apache.org/trunk/scandist.py Sun Aug  9 12:50:27 2015
@@ -201,10 +201,6 @@ def processCommit(commit):
     for path in paths:
         if trace:
             print "Checking " + path
-        if paths[path]['flags'] == 'D  ':
-            if debug:
-                print "Ignoring deletion of path '%s' " % path
-            continue  # it's a deletion; ignore
         # Is it a dist/release commit?
         match = re.match(RELEASE_MATCH, path)
         if match:
@@ -212,6 +208,10 @@ def processCommit(commit):
             if project != "incubator":
                 match = re.match(".*/(.+)$", path)
                 if match:
+                    if paths[path]['flags'] == 'D  ':
+                        if debug:
+                            print "Ignoring deletion of path '%s' " % path
+                        continue  # it's a deletion; ignore        
                     fileName = match.group(1)
                     if isIgnored(fileName):
                         if debug:



Mime
View raw message