##// END OF EJS Templates
revlog: avoid exposing delayed index entry too widely in non-inline revlog...
marmoute -
r52443:66417f55 stable
parent child Browse files
Show More
@@ -1173,7 +1173,9 b' class _InnerRevlog:'
1173 self.opener.unlink(self.index_file)
1173 self.opener.unlink(self.index_file)
1174 return self.index_file
1174 return self.index_file
1175 else:
1175 else:
1176 self._segmentfile._delay_buffer = self._delay_buffer = []
1176 self._delay_buffer = []
1177 if self.inline:
1178 self._segmentfile._delay_buffer = self._delay_buffer
1177 return None
1179 return None
1178
1180
1179 def write_pending(self):
1181 def write_pending(self):
@@ -1193,7 +1195,11 b' class _InnerRevlog:'
1193 ifh.seek(0, os.SEEK_END)
1195 ifh.seek(0, os.SEEK_END)
1194 ifh.write(b"".join(self._delay_buffer))
1196 ifh.write(b"".join(self._delay_buffer))
1195 any_pending = True
1197 any_pending = True
1196 self._segmentfile._delay_buffer = self._delay_buffer = None
1198 self._delay_buffer = None
1199 if self.inline:
1200 self._segmentfile._delay_buffer = self._delay_buffer
1201 else:
1202 assert self._segmentfile._delay_buffer is None
1197 self._orig_index_file = self.index_file
1203 self._orig_index_file = self.index_file
1198 self.index_file = pending_index_file
1204 self.index_file = pending_index_file
1199 self._segmentfile.filename = self.index_file
1205 self._segmentfile.filename = self.index_file
General Comments 0
You need to be logged in to leave comments. Login now