diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -2906,11 +2906,11 @@ if scmutil.gdinitconfig(ui): requirements.add('generaldelta') + # experimental config: format.sparse-revlog + if ui.configbool('format', 'sparse-revlog'): + requirements.add(SPARSEREVLOG_REQUIREMENT) if ui.configbool('experimental', 'treemanifest'): requirements.add('treemanifest') - # experimental config: format.sparse-revlog - if ui.configbool('format', 'sparse-revlog'): - requirements.add(SPARSEREVLOG_REQUIREMENT) revlogv2 = ui.config('experimental', 'revlogv2') if revlogv2 == 'enable-unstable-format-and-corrupt-my-data': diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1450,8 +1450,7 @@ """ # experimental config: format.generaldelta return (ui.configbool('format', 'generaldelta') - or ui.configbool('format', 'usegeneraldelta') - or ui.configbool('format', 'sparse-revlog')) + or ui.configbool('format', 'usegeneraldelta')) def gddeltaconfig(ui): """helper function to know if incoming delta should be optimised