hgext3rd/evolve/stablerangecache.py
branchstable
changeset 4105 dda7746647f2
parent 4089 ecd90548a10d
child 4109 d562316c548f
equal deleted inserted replaced
4104:a023abd12f3b 4105:dda7746647f2
   264     def _save(self, repo):
   264     def _save(self, repo):
   265         if not self._unsavedsubranges:
   265         if not self._unsavedsubranges:
   266             return
   266             return
   267         try:
   267         try:
   268             return self._trysave(repo)
   268             return self._trysave(repo)
   269         except (sqlite3.DatabaseError, sqlite3.OperationalError, sqlite3.IntegrityError) as exc:
   269         except (IOError, OSError, sqlite3.DatabaseError, sqlite3.OperationalError, sqlite3.IntegrityError) as exc:
   270             # Catch error that may arise under stress
   270             # Catch error that may arise under stress
   271             #
   271             #
   272             # operational error catch read-only and locked database
   272             # operational error catch read-only and locked database
   273             # IntegrityError catch Unique constraint error that may arise
   273             # IntegrityError catch Unique constraint error that may arise
   274             if '_con' in vars(self):
   274             if '_con' in vars(self):