Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 26907:dfab6edb98e3
format: introduce 'format.usegeneraldelta`
This option will make repositories created as general delta by default but will
not make Mercurial aggressively recompute deltas for all incoming bundle.
Instead, the delta contained in the bundle will be used. This will allow us to
start having general delta repositories created everywhere without triggering
massive recomputation costs for all new clients cloning from old servers.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 02 Nov 2015 15:59:12 +0000 |
parents | e40af07e518e |
children | 41d3e307a7c1 |
comparison
equal
deleted
inserted
replaced
26906:e40af07e518e | 26907:dfab6edb98e3 |
---|---|
1171 return _locksub(repo, repo.currentwlock(), 'HG_WLOCK_LOCKER', cmd, *args, | 1171 return _locksub(repo, repo.currentwlock(), 'HG_WLOCK_LOCKER', cmd, *args, |
1172 **kwargs) | 1172 **kwargs) |
1173 | 1173 |
1174 def gdinitconfig(ui): | 1174 def gdinitconfig(ui): |
1175 """helper function to know if a repo should be created as general delta | 1175 """helper function to know if a repo should be created as general delta |
1176 | 1176 """ |
1177 This currently depends on a single config option but this will get more | 1177 # experimental config: format.generaldelta |
1178 complicated soon.""" | 1178 return (ui.configbool('format', 'generaldelta', False) |
1179 or ui.configbool('format', 'usegeneraldelta', False)) | |
1180 | |
1181 def gddeltaconfig(ui): | |
1182 """helper function to know if incoming delta should be optimised | |
1183 """ | |
1179 # experimental config: format.generaldelta | 1184 # experimental config: format.generaldelta |
1180 return ui.configbool('format', 'generaldelta', False) | 1185 return ui.configbool('format', 'generaldelta', False) |