Mercurial > hg > mercurial-source
changeset 34027:fd50788a2d4f
configitems: register the 'format.obsstore-version' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:42:27 +0200 |
parents | a9524aea7cab |
children | 28e8983d9ed7 |
files | mercurial/configitems.py mercurial/obsolete.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -122,6 +122,9 @@ coreconfigitem('format', 'maxchainlen', default=None, ) +coreconfigitem('format', 'obsstore-version', + default=None, +) coreconfigitem('hostsecurity', 'ciphers', default=None, )
--- a/mercurial/obsolete.py +++ b/mercurial/obsolete.py @@ -717,7 +717,7 @@ """Create an obsstore instance from a repo.""" # read default format for new obsstore. # developer config: format.obsstore-version - defaultformat = ui.configint('format', 'obsstore-version', None) + defaultformat = ui.configint('format', 'obsstore-version') # rely on obsstore class default when possible. kwargs = {} if defaultformat is not None: