Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 40884:a714eee1ac28
sparse-revlog: disable sparse-revlog if config disable general-delta
Sparse-revlog requires general-delta in order to work. If general-delta is
explicitly disabled through configuration, we should honor that and also
disabled sparse-revlog.
This change will be more relevant when sparse-revlog is enabled by default.
Differential Revision: https://phab.mercurial-scm.org/D5311
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 12 Nov 2018 01:42:03 +0100 |
parents | b7823bd59b07 |
children | 8cf92ca92bfe |
comparison
equal
deleted
inserted
replaced
40883:597fe8d81104 | 40884:a714eee1ac28 |
---|---|
1448 def gdinitconfig(ui): | 1448 def gdinitconfig(ui): |
1449 """helper function to know if a repo should be created as general delta | 1449 """helper function to know if a repo should be created as general delta |
1450 """ | 1450 """ |
1451 # experimental config: format.generaldelta | 1451 # experimental config: format.generaldelta |
1452 return (ui.configbool('format', 'generaldelta') | 1452 return (ui.configbool('format', 'generaldelta') |
1453 or ui.configbool('format', 'usegeneraldelta') | 1453 or ui.configbool('format', 'usegeneraldelta')) |
1454 or ui.configbool('format', 'sparse-revlog')) | |
1455 | 1454 |
1456 def gddeltaconfig(ui): | 1455 def gddeltaconfig(ui): |
1457 """helper function to know if incoming delta should be optimised | 1456 """helper function to know if incoming delta should be optimised |
1458 """ | 1457 """ |
1459 # experimental config: format.generaldelta | 1458 # experimental config: format.generaldelta |