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 2018/08/13 17:26:22 UTC
svn commit: r1837972 - /comdev/reporter.apache.org/trunk/scripts/scandist.py
Author: sebb
Date: Mon Aug 13 17:26:22 2018
New Revision: 1837972
URL: http://svn.apache.org/viewvc?rev=1837972&view=rev
Log:
Reject deletions earlier; add more debug
Modified:
comdev/reporter.apache.org/trunk/scripts/scandist.py
Modified: comdev/reporter.apache.org/trunk/scripts/scandist.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/scandist.py?rev=1837972&r1=1837971&r2=1837972&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/scandist.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/scandist.py Mon Aug 13 17:26:22 2018
@@ -236,22 +236,25 @@ def processCommit(commit):
# Is it a dist/release commit?
match = re.match(RELEASE_MATCH, path)
if match:
+ if paths[path]['flags'] == 'D ':
+ if debug:
+ print("Ignoring deletion of path '%s' " % path)
+ continue # it's a deletion; ignore
project = match.group(1)
+ #
if project in IGNORED_PROJECTS:
if debug:
- print("Ignoring commit for path: %s" % path)
+ print("Ignoring commit for path: %s (%s)" % (path, project))
else:
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:
print("Ignoring update of file %s" % path)
continue
+ if debug:
+ print("Processing update of file %s" % path)
# a single commit can potentially affect multiple projects
# create the dict and array if necessary
if not project in targets: