comparison mercurial/configitems.py @ 39996:dbcb466d0065

localrepo: define storage backend in creation options (API) We add an experimental config option to define the storage backend for new repositories. By default, it uses "revlogv1," which maps to the current and only modern supported repository format. We add a "backend" creation option to control which backend to use. It defaults to using the value from the config option. newreporequirements() will now barf if it sees a "backend" value that isn't "revlogv1." This forces extensions to monkeypatch the function to handle requirements derivation for custom backends. In order for this to "just work," we factored out obtaining the default creation options into its own function and made callers of newreporequirements() responsible for passing in valid data. Without this, direct callers of newreporequirements() wouldn't get the proper results. Differential Revision: https://phab.mercurial-scm.org/D4791
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 28 Sep 2018 09:46:50 -0700
parents db5501d93bcf
children 6509fcec830c
comparison
equal deleted inserted replaced
39995:582676acaf6d 39996:dbcb466d0065
939 default=dynamicdefault, 939 default=dynamicdefault,
940 ) 940 )
941 coreconfigitem('push', 'pushvars.server', 941 coreconfigitem('push', 'pushvars.server',
942 default=False, 942 default=False,
943 ) 943 )
944 coreconfigitem('storage', 'new-repo-backend',
945 default='revlogv1',
946 )
944 coreconfigitem('storage', 'revlog.optimize-delta-parent-choice', 947 coreconfigitem('storage', 'revlog.optimize-delta-parent-choice',
945 default=True, 948 default=True,
946 alias=[('format', 'aggressivemergedeltas')], 949 alias=[('format', 'aggressivemergedeltas')],
947 ) 950 )
948 coreconfigitem('server', 'bookmarks-pushkey-compat', 951 coreconfigitem('server', 'bookmarks-pushkey-compat',