sparse-revlog: also use sparse-revlog config as a general delta trigger stable
authorBoris Feld <boris.feld@octobus.net>
Mon, 30 Jul 2018 15:53:47 +0200
branchstable
changeset 38759 f8cbff2184d7
parent 38758 774f92710a81
child 38760 17da52bbadb0
sparse-revlog: also use sparse-revlog config as a general delta trigger Sparse revlog rely on general delta, so we should make sure it is used.
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Sun Jul 29 16:25:51 2018 +0900
+++ b/mercurial/scmutil.py	Mon Jul 30 15:53:47 2018 +0200
@@ -1366,7 +1366,8 @@
     """
     # experimental config: format.generaldelta
     return (ui.configbool('format', 'generaldelta')
-            or ui.configbool('format', 'usegeneraldelta'))
+            or ui.configbool('format', 'usegeneraldelta')
+            or ui.configbool('format', 'sparse-revlog'))
 
 def gddeltaconfig(ui):
     """helper function to know if incoming delta should be optimised