##// 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 self._delaybuf = None
432 self._delaybuf = None
433 self._divert = False
433 self._divert = False
434 # split when we're done
434 # split when we're done
435 self.checkinlinesize(tr)
435 self._enforceinlinesize(tr)
436
436
437 def _writepending(self, tr):
437 def _writepending(self, tr):
438 "create a file containing the unfinalized state for pretxnchangegroup"
438 "create a file containing the unfinalized state for pretxnchangegroup"
@@ -458,9 +458,9 b' class changelog(revlog.revlog):'
458
458
459 return False
459 return False
460
460
461 def checkinlinesize(self, tr, fp=None):
461 def _enforceinlinesize(self, tr, fp=None):
462 if not self._delayed:
462 if not self._delayed:
463 revlog.revlog.checkinlinesize(self, tr, fp)
463 revlog.revlog._enforceinlinesize(self, tr, fp)
464
464
465 def read(self, node):
465 def read(self, node):
466 """Obtain data from a parsed changelog revision.
466 """Obtain data from a parsed changelog revision.
@@ -1834,7 +1834,7 b' class revlog(object):'
1834 raise RevlogError(_("integrity check failed on %s:%s")
1834 raise RevlogError(_("integrity check failed on %s:%s")
1835 % (self.indexfile, pycompat.bytestr(revornode)))
1835 % (self.indexfile, pycompat.bytestr(revornode)))
1836
1836
1837 def checkinlinesize(self, tr, fp=None):
1837 def _enforceinlinesize(self, tr, fp=None):
1838 """Check if the revlog is too big for inline and convert if so.
1838 """Check if the revlog is too big for inline and convert if so.
1839
1839
1840 This should be called after revisions are added to the revlog. If the
1840 This should be called after revisions are added to the revlog. If the
@@ -2145,7 +2145,7 b' class revlog(object):'
2145 ifh.write(entry)
2145 ifh.write(entry)
2146 ifh.write(data[0])
2146 ifh.write(data[0])
2147 ifh.write(data[1])
2147 ifh.write(data[1])
2148 self.checkinlinesize(transaction, ifh)
2148 self._enforceinlinesize(transaction, ifh)
2149
2149
2150 def addgroup(self, deltas, linkmapper, transaction, addrevisioncb=None):
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