# HG changeset patch # User Pierre-Yves David # Date 1498786947 -7200 # Node ID fd50788a2d4fbb4c55e99924bff19f096c362c57 # Parent a9524aea7cab582df61cd80cee41bc90031d550e configitems: register the 'format.obsstore-version' config diff -r a9524aea7cab -r fd50788a2d4f mercurial/configitems.py --- a/mercurial/configitems.py Fri Jun 30 03:42:15 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 30 03:42:27 2017 +0200 @@ -122,6 +122,9 @@ coreconfigitem('format', 'maxchainlen', default=None, ) +coreconfigitem('format', 'obsstore-version', + default=None, +) coreconfigitem('hostsecurity', 'ciphers', default=None, ) diff -r a9524aea7cab -r fd50788a2d4f mercurial/obsolete.py --- a/mercurial/obsolete.py Fri Jun 30 03:42:15 2017 +0200 +++ b/mercurial/obsolete.py Fri Jun 30 03:42:27 2017 +0200 @@ -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: