equal
deleted
inserted
replaced
257 self._divert = False |
257 self._divert = False |
258 # split when we're done |
258 # split when we're done |
259 self.checkinlinesize(tr) |
259 self.checkinlinesize(tr) |
260 |
260 |
261 def readpending(self, file): |
261 def readpending(self, file): |
|
262 """read index data from a "pending" file |
|
263 |
|
264 During a transaction, the actual changeset data is already stored in the |
|
265 main file, but not yet finalized in the on-disk index. Instead, a |
|
266 "pending" index is written by the transaction logic. If this function |
|
267 is running, we are likely in a subprocess invoked in a hook. The |
|
268 subprocess is informed that it is within a transaction and needs to |
|
269 access its content. |
|
270 |
|
271 This function will read all the index data out of the pending file and |
|
272 extend the main index.""" |
|
273 |
262 if not self.opener.exists(file): |
274 if not self.opener.exists(file): |
263 return # no pending data for changelog |
275 return # no pending data for changelog |
264 r = revlog.revlog(self.opener, file) |
276 r = revlog.revlog(self.opener, file) |
265 self.index = r.index |
277 self.index = r.index |
266 self.nodemap = r.nodemap |
278 self.nodemap = r.nodemap |