##// END OF EJS Templates
revlog: rename 'self.checkinlinesize' into '_enforceinlinesize'...
Boris Feld -
r35992:9ba1d0c7 default
parent child Browse files
Show More
@@ -432,7 +432,7 b' class changelog(revlog.revlog):'
432 432 self._delaybuf = None
433 433 self._divert = False
434 434 # split when we're done
435 self.checkinlinesize(tr)
435 self._enforceinlinesize(tr)
436 436
437 437 def _writepending(self, tr):
438 438 "create a file containing the unfinalized state for pretxnchangegroup"
@@ -458,9 +458,9 b' class changelog(revlog.revlog):'
458 458
459 459 return False
460 460
461 def checkinlinesize(self, tr, fp=None):
461 def _enforceinlinesize(self, tr, fp=None):
462 462 if not self._delayed:
463 revlog.revlog.checkinlinesize(self, tr, fp)
463 revlog.revlog._enforceinlinesize(self, tr, fp)
464 464
465 465 def read(self, node):
466 466 """Obtain data from a parsed changelog revision.
@@ -1834,7 +1834,7 b' class revlog(object):'
1834 1834 raise RevlogError(_("integrity check failed on %s:%s")
1835 1835 % (self.indexfile, pycompat.bytestr(revornode)))
1836 1836
1837 def checkinlinesize(self, tr, fp=None):
1837 def _enforceinlinesize(self, tr, fp=None):
1838 1838 """Check if the revlog is too big for inline and convert if so.
1839 1839
1840 1840 This should be called after revisions are added to the revlog. If the
@@ -2145,7 +2145,7 b' class revlog(object):'
2145 2145 ifh.write(entry)
2146 2146 ifh.write(data[0])
2147 2147 ifh.write(data[1])
2148 self.checkinlinesize(transaction, ifh)
2148 self._enforceinlinesize(transaction, ifh)
2149 2149
2150 2150 def addgroup(self, deltas, linkmapper, transaction, addrevisioncb=None):
2151 2151 """
General Comments 0
You need to be logged in to leave comments. Login now