comparison mercurial/changelog.py @ 25814:dc1a49264628

changelog: update read pending documentation The pending index contains a full copy of the index + in-transaction data. We replace "extend" with "overwrite" to make this clearer.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 17 Jul 2015 15:53:56 +0200
parents 7fdd1782fc4e
children 85f442747153
comparison
equal deleted inserted replaced
25813:18bae5eb58c5 25814:dc1a49264628
267 is running, we are likely in a subprocess invoked in a hook. The 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 268 subprocess is informed that it is within a transaction and needs to
269 access its content. 269 access its content.
270 270
271 This function will read all the index data out of the pending file and 271 This function will read all the index data out of the pending file and
272 extend the main index.""" 272 overwrite the main index."""
273 273
274 if not self.opener.exists(file): 274 if not self.opener.exists(file):
275 return # no pending data for changelog 275 return # no pending data for changelog
276 r = revlog.revlog(self.opener, file) 276 r = revlog.revlog(self.opener, file)
277 self.index = r.index 277 self.index = r.index