Show More
@@ -259,6 +259,18 b' class changelog(revlog.revlog):' | |||||
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) |
General Comments 0
You need to be logged in to leave comments.
Login now