Mercurial > hg
comparison mercurial/revlogutils/deltas.py @ 47399:34cc102c73f5
revlog: move `revisioninfo` in `revlogutils`
We will need it in other utility module. So lets extract it from `revlog.py`,
the module is too large already anyway.
Differential Revision: https://phab.mercurial-scm.org/D10797
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 30 May 2021 16:20:36 +0200 |
parents | b876f0bf7366 |
children | 1efe3cdef53a |
comparison
equal
deleted
inserted
replaced
47398:53289d02037a | 47399:34cc102c73f5 |
---|---|
930 self.revlog = revlog | 930 self.revlog = revlog |
931 | 931 |
932 def buildtext(self, revinfo, fh): | 932 def buildtext(self, revinfo, fh): |
933 """Builds a fulltext version of a revision | 933 """Builds a fulltext version of a revision |
934 | 934 |
935 revinfo: _revisioninfo instance that contains all needed info | 935 revinfo: revisioninfo instance that contains all needed info |
936 fh: file handle to either the .i or the .d revlog file, | 936 fh: file handle to either the .i or the .d revlog file, |
937 depending on whether it is inlined or not | 937 depending on whether it is inlined or not |
938 """ | 938 """ |
939 btext = revinfo.btext | 939 btext = revinfo.btext |
940 if btext[0] is not None: | 940 if btext[0] is not None: |