[Commits] (vajda) broke up displayed commit time in commit time and notifications time

commits at osafoundation.org commits at osafoundation.org
Tue Aug 24 10:52:30 PDT 2004


Commit by: vajda
Modified files:
chandler/repository/persistence/XMLRepositoryView.py 1.47 1.48

Log message:
broke up displayed commit time in commit time and notifications time

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/repository/persistence/XMLRepositoryView.py.diff?r1=text&tr1=1.47&r2=text&tr2=1.48

Index: chandler/repository/persistence/XMLRepositoryView.py
diff -u chandler/repository/persistence/XMLRepositoryView.py:1.47 chandler/repository/persistence/XMLRepositoryView.py:1.48
--- chandler/repository/persistence/XMLRepositoryView.py:1.47	Thu Aug 19 11:06:29 2004
+++ chandler/repository/persistence/XMLRepositoryView.py	Tue Aug 24 10:52:29 2004
@@ -1,6 +1,6 @@
 
-__revision__  = "$Revision: 1.47 $"
-__date__      = "$Date: 2004/08/19 18:06:29 $"
+__revision__  = "$Revision: 1.48 $"
+__date__      = "$Date: 2004/08/24 17:52:29 $"
 __copyright__ = "Copyright (c) 2002 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -265,13 +265,19 @@
                     
         self._notRoots.clear()
 
+        after = datetime.now()
+        if count > 0:
+            self.logger.info('%s committed %d items (%ld bytes) in %s',
+                             self, count, size, after - before)
+
         if histNotifications is not None:
+            count = len(histNotifications)
             histNotifications.dispatchHistory()
+            delta = datetime.now() - after
+            if delta.seconds > 1:
+                self.logger.warning('%s %d notifications run in %s',
+                                    self, count, delta)
 
-        if count > 0:
-            self.logger.info('%s committed %d items (%ld bytes) in %s',
-                             self, count, size,
-                             datetime.now() - before)
         self.prune(10000)
 
         if timing: tools.timing.end("Repository commit")



More information about the Commits mailing list