mercurial/revlog.py
changeset 47181 88bd08a6830f
parent 47180 c9ae2e7fe154
child 47182 cacb08f357ed
--- a/mercurial/revlog.py	Mon May 03 12:25:23 2021 +0200
+++ b/mercurial/revlog.py	Mon May 03 12:25:34 2021 +0200
@@ -1956,10 +1956,8 @@
         to use multiple index and data files.
         """
         tiprev = len(self) - 1
-        if (
-            not self._inline
-            or (self.start(tiprev) + self.length(tiprev)) < _maxinline
-        ):
+        total_size = self.start(tiprev) + self.length(tiprev)
+        if not self._inline or total_size < _maxinline:
             return
 
         troffset = tr.findoffset(self._indexfile)