mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
revlog: add docstring for checkinlinesize()
The name is deceptive: it does more than just "check." Add a docstring to clarify what's going on.
This commit is contained in:
parent
93ad4e38a3
commit
106b00c51d
@ -1125,6 +1125,12 @@ class revlog(object):
|
||||
% (self.indexfile, revornode))
|
||||
|
||||
def checkinlinesize(self, tr, fp=None):
|
||||
"""Check if the revlog is too big for inline and convert if so.
|
||||
|
||||
This should be called after revisions are added to the revlog. If the
|
||||
revlog has grown too large to be an inline revlog, it will convert it
|
||||
to use multiple index and data files.
|
||||
"""
|
||||
if not self._inline or (self.start(-2) + self.length(-2)) < _maxinline:
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user