Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/scmutil.py @ 33246:4d9458e06ef0
configitems: register the 'format.usegeneraldelta' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:42:29 +0200 |
parents | 784f2bd96d43 |
children | 53b3a1968aa6 |
comparison
equal
deleted
inserted
replaced
33245:28e8983d9ed7 | 33246:4d9458e06ef0 |
---|---|
981 def gdinitconfig(ui): | 981 def gdinitconfig(ui): |
982 """helper function to know if a repo should be created as general delta | 982 """helper function to know if a repo should be created as general delta |
983 """ | 983 """ |
984 # experimental config: format.generaldelta | 984 # experimental config: format.generaldelta |
985 return (ui.configbool('format', 'generaldelta') | 985 return (ui.configbool('format', 'generaldelta') |
986 or ui.configbool('format', 'usegeneraldelta', True)) | 986 or ui.configbool('format', 'usegeneraldelta')) |
987 | 987 |
988 def gddeltaconfig(ui): | 988 def gddeltaconfig(ui): |
989 """helper function to know if incoming delta should be optimised | 989 """helper function to know if incoming delta should be optimised |
990 """ | 990 """ |
991 # experimental config: format.generaldelta | 991 # experimental config: format.generaldelta |