hooks/metadata.py
changeset 9296 8a4175557426
parent 8900 010a59e12d89
child 9448 3e7cad3967c5
--- a/hooks/metadata.py	Wed Oct 16 15:50:04 2013 +0200
+++ b/hooks/metadata.py	Thu Oct 17 11:34:03 2013 +0200
@@ -149,7 +149,7 @@
 
 # entity source handling #######################################################
 
-class ChangeEntityUpdateCaches(hook.Operation):
+class ChangeEntitySourceUpdateCaches(hook.Operation):
     oldsource = newsource = entity = None # make pylint happy
 
     def postcommit_event(self):
@@ -221,6 +221,6 @@
                      'mtime': datetime.now()}
             self._cw.system_sql(syssource.sqlgen.insert('entities', attrs), attrs)
             # register an operation to update repository/sources caches
-            ChangeEntityUpdateCaches(self._cw, entity=entity,
-                                     oldsource=oldsource.repo_source,
-                                     newsource=syssource)
+            ChangeEntitySourceUpdateCaches(self._cw, entity=entity,
+                                           oldsource=oldsource.repo_source,
+                                           newsource=syssource)