Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 39225:dbc5ead9f40f
revlog: fix typo in 'buildtext' name
There are no such things as 'deltacomputer._buildtext'. I'm not sure why this
code never ran, but we better fix the typo.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 16 Aug 2018 04:50:32 +0200 |
parents | 5517d62c1bcc |
children | b41d023a412a |
comparison
equal
deleted
inserted
replaced
39224:5517d62c1bcc | 39225:dbc5ead9f40f |
---|---|
2659 | 2659 |
2660 entry = self._io.packentry(e, self.node, self.version, curr) | 2660 entry = self._io.packentry(e, self.node, self.version, curr) |
2661 self._writeentry(transaction, ifh, dfh, entry, data, link, offset) | 2661 self._writeentry(transaction, ifh, dfh, entry, data, link, offset) |
2662 | 2662 |
2663 if alwayscache and rawtext is None: | 2663 if alwayscache and rawtext is None: |
2664 rawtext = deltacomputer._buildtext(revinfo, fh) | 2664 rawtext = deltacomputer.buildtext(revinfo, fh) |
2665 | 2665 |
2666 if type(rawtext) == bytes: # only accept immutable objects | 2666 if type(rawtext) == bytes: # only accept immutable objects |
2667 self._cache = (node, curr, rawtext) | 2667 self._cache = (node, curr, rawtext) |
2668 self._chainbasecache[curr] = chainbase | 2668 self._chainbasecache[curr] = chainbase |
2669 return node | 2669 return node |