changeset 643:de2e737034e5

0.6dev: Dropping all Bitten calls to do `repos.sync()` as this is handled by Trac at the start of each request. See #269.
author osimons
date Mon, 24 Aug 2009 10:59:53 +0000
parents 67ff41922acf
children 9331ab08000f
files bitten/queue.py bitten/web_ui.py
diffstat 2 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/queue.py
+++ b/bitten/queue.py
@@ -209,8 +209,6 @@
         configuration being in the build queue.
         """
         repos = self.env.get_repository()
-        if hasattr(repos, 'sync'):
-            repos.sync()
 
         db = self.env.get_db_cnx()
         builds = []
--- a/bitten/web_ui.py
+++ b/bitten/web_ui.py
@@ -88,8 +88,6 @@
             status = ''
             if BuildMaster(self.env).quick_status:
                 repos = self.env.get_repository(req.authname)
-                if hasattr(repos, 'sync'):
-                    repos.sync()
                 for config in BuildConfig.select(self.env, 
                                                  include_inactive=False):
                     prev_rev = None
@@ -185,8 +183,6 @@
         data['show_all'] = show_all
 
         repos = self.env.get_repository(req.authname)
-        if hasattr(repos, 'sync'):
-            repos.sync()
 
         configs = []
         for config in BuildConfig.select(self.env, include_inactive=show_all):
@@ -274,8 +270,6 @@
         db = self.env.get_db_cnx()
 
         repos = self.env.get_repository(req.authname)
-        if hasattr(repos, 'sync'):
-            repos.sync()
 
         configs = []
         for config in BuildConfig.select(self.env, include_inactive=False):
@@ -342,8 +336,6 @@
                                 % config_name)
 
         repos = self.env.get_repository(req.authname)
-        if hasattr(repos, 'sync'):
-            repos.sync()
         repos.authz.assert_permission(config.path)
 
         data = {'title': 'Build Configuration "%s"' \
@@ -414,8 +406,6 @@
         data['page_number'] = page
 
         repos = self.env.get_repository(req.authname)
-        if hasattr(repos, 'sync'):
-            repos.sync()
 
         builds_per_page = 12 * len(platforms)
         idx = 0
@@ -581,8 +571,6 @@
                        (start, stop, Build.SUCCESS, Build.FAILURE))
 
         repos = self.env.get_repository(req.authname)
-        if hasattr(repos, 'sync'):
-            repos.sync()
 
         event_kinds = {Build.SUCCESS: 'successbuild',
                        Build.FAILURE: 'failedbuild'}
Copyright (C) 2012-2017 Edgewall Software