diff mercurial/changelog.py @ 35974:9ba1d0c724e2

revlog: rename 'self.checkinlinesize' into '_enforceinlinesize' The name change has two motivations: 1) The function has no external caller, so we move it to protected space. 2) the function does more than checking it also split the data if we have more data than 'inline' supports.
author Boris Feld <boris.feld@octobus.net>
date Mon, 05 Feb 2018 18:04:40 +0100
parents 69aaad59dc02
children ddeb7653b31c
line wrap: on
line diff
--- a/mercurial/changelog.py	Mon Feb 05 17:57:29 2018 +0100
+++ b/mercurial/changelog.py	Mon Feb 05 18:04:40 2018 +0100
@@ -432,7 +432,7 @@
             self._delaybuf = None
         self._divert = False
         # split when we're done
-        self.checkinlinesize(tr)
+        self._enforceinlinesize(tr)
 
     def _writepending(self, tr):
         "create a file containing the unfinalized state for pretxnchangegroup"
@@ -458,9 +458,9 @@
 
         return False
 
-    def checkinlinesize(self, tr, fp=None):
+    def _enforceinlinesize(self, tr, fp=None):
         if not self._delayed:
-            revlog.revlog.checkinlinesize(self, tr, fp)
+            revlog.revlog._enforceinlinesize(self, tr, fp)
 
     def read(self, node):
         """Obtain data from a parsed changelog revision.