changeset 27093:41d3e307a7c1

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 02 Nov 2015 17:33:18 +0000
parents 156985f2dec0
children 0569042b41a9
files mercurial/help/config.txt mercurial/scmutil.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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