2327 rawtext = deltacomputer.buildtext(revinfo, fh) |
2328 rawtext = deltacomputer.buildtext(revinfo, fh) |
2328 |
2329 |
2329 if type(rawtext) == bytes: # only accept immutable objects |
2330 if type(rawtext) == bytes: # only accept immutable objects |
2330 self._revisioncache = (node, curr, rawtext) |
2331 self._revisioncache = (node, curr, rawtext) |
2331 self._chainbasecache[curr] = deltainfo.chainbase |
2332 self._chainbasecache[curr] = deltainfo.chainbase |
2332 return node |
2333 return curr |
2333 |
2334 |
2334 def _writeentry(self, transaction, ifh, dfh, entry, data, link, offset): |
2335 def _writeentry(self, transaction, ifh, dfh, entry, data, link, offset): |
2335 # Files opened in a+ mode have inconsistent behavior on various |
2336 # Files opened in a+ mode have inconsistent behavior on various |
2336 # platforms. Windows requires that a file positioning call be made |
2337 # platforms. Windows requires that a file positioning call be made |
2337 # when the file handle transitions between reads and writes. See |
2338 # when the file handle transitions between reads and writes. See |