equal
deleted
inserted
replaced
136 sqlexec('UPDATE deleted_entities SET type=%(n)s WHERE type=%(x)s', |
136 sqlexec('UPDATE deleted_entities SET type=%(n)s WHERE type=%(x)s', |
137 {'x': etype, 'n': netype}) |
137 {'x': etype, 'n': netype}) |
138 except: |
138 except: |
139 pass |
139 pass |
140 tocleanup = [eid] |
140 tocleanup = [eid] |
141 tocleanup += (eid for eid, (eidetype, uri, extid) in repo._type_source_cache.items() |
141 tocleanup += (eid for eid, cached in repo._type_source_cache.iteritems() |
142 if etype == eidetype) |
142 if etype == cached[0]) |
143 repo.clear_caches(tocleanup) |
143 repo.clear_caches(tocleanup) |
144 session.commit(False) |
144 session.commit(False) |
145 if needcopy: |
145 if needcopy: |
146 ertidx[eid] = netype |
146 ertidx[eid] = netype |
147 copiedeids.add(eid) |
147 copiedeids.add(eid) |