format: create new repository as 'generaldelta' by default
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 02 Nov 2015 17:33:18 +0000
changeset 27093 41d3e307a7c1
parent 27092 156985f2dec0
child 27094 0569042b41a9
format: create new repository as 'generaldelta' by default Since we have pushed back the performance issue related to general delta behind another configuration (Still off by default), we can safely create new repository with general delta support. As client are compatible with it since Mercurial 1.9 (4.5 years ago) I do no expect any significant compatibility issues.
mercurial/help/config.txt
mercurial/scmutil.py
--- a/mercurial/help/config.txt	Sun Nov 22 21:40:23 2015 -0800
+++ b/mercurial/help/config.txt	Mon Nov 02 17:33:18 2015 +0000
@@ -670,9 +670,9 @@
     Enable or disable the "generaldelta" repository format which improves
     repository compression by allowing "revlog" to store delta against arbitrary
     revision instead of the previous stored one. This provides significant
-    improvement for repositories with branches. Disabling this option ensures that
-    the on-disk format of newly created repository will be compatible with
-    Mercurial before version 1.9.
+    improvement for repositories with branches. Enabled by default. Disabling
+    this option ensures that the on-disk format of newly created repository will
+    be compatible with Mercurial before version 1.9.
 
 ``usestore``
     Enable or disable the "store" repository format which improves
--- a/mercurial/scmutil.py	Sun Nov 22 21:40:23 2015 -0800
+++ b/mercurial/scmutil.py	Mon Nov 02 17:33:18 2015 +0000
@@ -1176,7 +1176,7 @@
     """
     # experimental config: format.generaldelta
     return (ui.configbool('format', 'generaldelta', False)
-            or ui.configbool('format', 'usegeneraldelta', False))
+            or ui.configbool('format', 'usegeneraldelta', True))
 
 def gddeltaconfig(ui):
     """helper function to know if incoming delta should be optimised