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/06 23:07:05 UTC

svn commit: r1689500 - /comdev/projects.apache.org/scripts/cronjobs/pubsubber.py

Author: sebb
Date: Mon Jul  6 21:07:05 2015
New Revision: 1689500

URL: http://svn.apache.org/r1689500
Log:
Comments

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=1689500&r1=1689499&r2=1689500&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/pubsubber.py (original)
+++ comdev/projects.apache.org/scripts/cronjobs/pubsubber.py Mon Jul  6 21:07:05 2015
@@ -207,13 +207,13 @@ class PubSubClient(Thread):
                 try:
                     obj = json.loads(line)
                     if "commit" in obj and "repository" in obj['commit']:
-                        obj['commit']['whence'] = time.time()
+#                         obj['commit']['whence'] = time.time() # TODO: unused
                     
                             
                         # If it's our public svn repo, then...
                         if obj['commit']['repository'] == "13f79535-47bb-0310-9956-ffa450edef68":
                         
-                            #Grab some vars
+                            #Grab some vars (TODO: not used?)
                             commit = obj['commit']
                             body = commit['log']
                             svnuser = commit['committer']
@@ -221,7 +221,7 @@ class PubSubClient(Thread):
                             revision = commit['id']
                             email = svnuser + "@apache.org"
                             
-                            # Figure out the root thingermajig
+                            # Check if the commit is for our part of the repo
                             match = re.match("^%s" % watchPath, path)
                             if match:
                                 time.sleep(3)