changeset 49611:2afee2176775

delta-find: expand a function definition and call before extendin it This make the next changeset more compact.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 06 Nov 2022 13:46:08 -0500
parents 35d4c2124073
children e706bb41fdb3
files mercurial/revlogutils/deltas.py
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: