mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
91f01464e6
Summary: This makes it easier to debug wrong reponame issues. In theory those need to be checked and the config needs to be regenerated if they are changed for correctness. Given that username and reponame are rarely changed, I saved it for later. Reviewed By: DurhamG Differential Revision: D29428880 fbshipit-source-id: f996af6a7a1e329faaa8b0a53dac8621fa94dac8
28 lines
476 B
Perl
28 lines
476 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)
|
|
# reponame=reponame-default
|
|
# canary=None
|
|
# username=
|
|
# Generated by `hg debugdynamicconfig` - DO NOT MODIFY
|
|
[section]
|
|
key=✓
|
|
|
|
$ hg config section.key
|
|
✓
|