Mercurial > hg
comparison mercurial/configitems.py @ 34989:1a314176da9c stable
subrepo: use per-type config options to enable subrepos
We change subrepos.allowed from a list of allowed subrepo types to
a combination of a master switch and per-type boolean flag.
If the master switch is set, subrepos can be disabled wholesale.
If subrepos are globally enabled, then per-type options are
consulted. Mercurial repos are enabled by default. Everything else
is disabled by default.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 06 Nov 2017 22:32:41 -0800 |
parents | 5e27afeddaee |
children | cabc840ffdee |
comparison
equal
deleted
inserted
replaced
34988:bd725a71f274 | 34989:1a314176da9c |
---|---|
812 default=True, | 812 default=True, |
813 ) | 813 ) |
814 coreconfigitem('subrepos', 'allowed', | 814 coreconfigitem('subrepos', 'allowed', |
815 default=dynamicdefault, # to make backporting simpler | 815 default=dynamicdefault, # to make backporting simpler |
816 ) | 816 ) |
817 coreconfigitem('subrepos', 'hg:allowed', | |
818 default=dynamicdefault, | |
819 ) | |
820 coreconfigitem('subrepos', 'git:allowed', | |
821 default=dynamicdefault, | |
822 ) | |
823 coreconfigitem('subrepos', 'svn:allowed', | |
824 default=dynamicdefault, | |
825 ) | |
817 coreconfigitem('templates', '.*', | 826 coreconfigitem('templates', '.*', |
818 default=None, | 827 default=None, |
819 generic=True, | 828 generic=True, |
820 ) | 829 ) |
821 coreconfigitem('trusted', 'groups', | 830 coreconfigitem('trusted', 'groups', |