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/13 23:37:03 UTC

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

Author: sebb
Date: Mon Jul 13 21:37:03 2015
New Revision: 1690825

URL: http://svn.apache.org/r1690825
Log:
Ignore changes that are just deletions

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=1690825&r1=1690824&r2=1690825&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scandist.py (original)
+++ comdev/reporter.apache.org/trunk/scandist.py Mon Jul 13 21:37:03 2015
@@ -218,7 +218,12 @@ class PubSubClient(Thread):
                             # "date": "2015-07-13 13:38:33 +0000 (Mon, 13 Jul 2015)", "type": "svn", "id": 1690668}
 
                             # Note: a single commit can change multiple paths
-                            for path in commit['changed']:
+                            paths = commit['changed']
+                            for path in paths:
+                                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(r"^release/([a-z0-9]+)", path)
                                 if match:
@@ -263,7 +268,7 @@ According to https://svn.apache.org/repo
 def main():
     global targets
     if debug:
-        print("Foreground test mode enabled, no updates will be made")
+        print("Foreground test mode enabled")