community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1690488 - /comdev/projects.apache.org/scripts/cronjobs/pubsubber.py
Date Sun, 12 Jul 2015 17:17:45 GMT
Author: sebb
Date: Sun Jul 12 17:17:45 2015
New Revision: 1690488

URL: http://svn.apache.org/r1690488
Log:
COMDEV-148 pubsubber.py only checks first path in a commit

Modified:
    comdev/projects.apache.org/scripts/cronjobs/pubsubber.py

Modified: comdev/projects.apache.org/scripts/cronjobs/pubsubber.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/pubsubber.py?rev=1690488&r1=1690487&r2=1690488&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/pubsubber.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/pubsubber.py Sun Jul 12 17:17:45 2015
@@ -213,10 +213,14 @@ class PubSubClient(Thread):
                             #Grab some vars
                             commit = obj['commit']
                             svnuser = commit['committer']
-                            path, action = commit['changed'].popitem()
+                            match = False
+                            # commit['changed'] = { "path" : { "flags": "value"}}
+                            for path in commit['changed']:
+                                # Check if the commit is for our part of the repo
+                                match = re.match("^%s" % watchPath, path)
+                                if match:
+                                    break # no need to check further
                             
-                            # Check if the commit is for our part of the repo
-                            match = re.match("^%s" % watchPath, path)
                             if match:
                                 if debug:
                                     print("Matched '" + path + "' against '" + watchPath
+ "'; would run 'svn up " + filePath + "'")



Mime
View raw message