equal
deleted
inserted
replaced
2058 old_index_file_path = self._indexfile |
2058 old_index_file_path = self._indexfile |
2059 new_index_file_path = self._indexfile + b'.s' |
2059 new_index_file_path = self._indexfile + b'.s' |
2060 opener = self.opener |
2060 opener = self.opener |
2061 weak_self = weakref.ref(self) |
2061 weak_self = weakref.ref(self) |
2062 |
2062 |
2063 fncache = getattr(opener, 'fncache', None) |
|
2064 if fncache is not None: |
|
2065 fncache.addignore(new_index_file_path) |
|
2066 |
|
2067 # the "split" index replace the real index when the transaction is finalized |
2063 # the "split" index replace the real index when the transaction is finalized |
2068 def finalize_callback(tr): |
2064 def finalize_callback(tr): |
2069 opener.rename( |
2065 opener.rename( |
2070 new_index_file_path, |
2066 new_index_file_path, |
2071 old_index_file_path, |
2067 old_index_file_path, |