# HG changeset patch # User osimons # Date 1251111593 0 # Node ID de2e737034e506078f1d94a4309dcf3ef959180b # Parent 67ff41922acf1acf18f3643be13a58537f2a43e4 0.6dev: Dropping all Bitten calls to do `repos.sync()` as this is handled by Trac at the start of each request. See #269. diff --git a/bitten/queue.py b/bitten/queue.py --- 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 = [] diff --git a/bitten/web_ui.py b/bitten/web_ui.py --- 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'}