Commits

Anonymous committed 660355c

Apply cboos' patch for #4120: ignore DB errors when trying to resync the repository cache, which would fail with SQLite when viewing the timeline.

  • Participants
  • Parent commits bd5f243
  • Branches 0.10-stable

Comments (0)

Files changed (1)

trac/versioncontrol/cache.py

                                    (str(current_rev), path, kind, action,
                                    base_path, base_rev))
                 current_rev = self.repos.next_rev(current_rev)
-            self.db.commit()
+            try:
+                self.db.commit()
+            except:
+                # See <http://trac.edgewall.org/ticket/4120>: this breaks badly
+                # while rendering the timeline, because the commit happens
+                # while iterating over a recordset
+                pass
             self.repos.authz = authz # restore permission checking
 
     def get_node(self, path, rev=None):