community-commits mailing list archives

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

URL: http://svn.apache.org/r1690485
Log:
Make debug mode really do nothing

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=1690485&r1=1690484&r2=1690485&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/pubsubber.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/pubsubber.py Sun Jul 12 17:03:50 2015
@@ -218,9 +218,14 @@ class PubSubClient(Thread):
                             # Check if the commit is for our part of the repo
                             match = re.match("^%s" % watchPath, path)
                             if match:
-                                time.sleep(3)
-                                subprocess.call(['svn','up',filePath])
-                            
+                                if debug:
+                                    print("Matched " + path + " would run 'svn up " + filePath
+ "'")
+                                else:
+                                    time.sleep(3)
+                                    subprocess.call(['svn','up',filePath])
+                            else:
+                                if debug:
+                                    print("Did not match against " + path)
                     
 
                 except ValueError as detail:



Mime
View raw message