delta-find: expand a function definition and call before extendin it
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 06 Nov 2022 13:46:08 -0500
changeset 49611 2afee2176775
parent 49610 35d4c2124073
child 49612 e706bb41fdb3
delta-find: expand a function definition and call before extendin it This make the next changeset more compact.
mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py	Mon Oct 17 22:19:43 2022 +0200
+++ b/mercurial/revlogutils/deltas.py	Sun Nov 06 13:46:08 2022 -0500
@@ -655,7 +655,13 @@
 LIMIT_BASE2TEXT = 500
 
 
-def _candidategroups(revlog, textlen, p1, p2, cachedelta):
+def _candidategroups(
+    revlog,
+    textlen,
+    p1,
+    p2,
+    cachedelta,
+):
     """Provides group of revision to be tested as delta base
 
     This top level function focus on emitting groups with unique and worthwhile
@@ -1169,7 +1175,11 @@
             self._write_debug(msg)
 
         groups = _candidategroups(
-            self.revlog, revinfo.textlen, p1r, p2r, cachedelta
+            self.revlog,
+            revinfo.textlen,
+            p1r,
+            p2r,
+            cachedelta,
         )
         candidaterevs = next(groups)
         while candidaterevs is not None: