mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
d643f48c8c
Summary: Dynamicconfigs are now part of our critical path. Let's remove the option to not load them. This also let's us get rid of a circularl dependency where loading dynamicconfigs required having already loaded some configs. This will let us move dynammicconfig loading to be before system rc loading in a later diff. Reviewed By: sfilipco Differential Revision: D23309090 fbshipit-source-id: 5138059a8ed944c3616007e7c1289b6a57be0e65
25 lines
416 B
Perl
25 lines
416 B
Perl
#chg-compatible
|
|
|
|
$ configure modern
|
|
|
|
$ export HG_TEST_DYNAMICCONFIG="$TESTTMP/test_hgrc"
|
|
$ cat > test_hgrc <<EOF
|
|
> [section]
|
|
> key=✓
|
|
> EOF
|
|
|
|
$ hg init client
|
|
$ cd client
|
|
|
|
Verify it can be manually generated
|
|
|
|
$ hg debugdynamicconfig
|
|
$ cat .hg/hgrc.dynamic
|
|
# version=4.4.2* (glob)
|
|
# Generated by `hg debugdynamicconfig` - DO NOT MODIFY
|
|
[section]
|
|
key=✓
|
|
|
|
$ hg config section.key
|
|
✓
|