diff -r 32a07b8a9f77 -r 201b44c8875c tests/test-config.t --- a/tests/test-config.t Sun Dec 18 16:20:04 2016 +0900 +++ b/tests/test-config.t Sun Oct 23 17:47:00 2016 +0900 @@ -84,6 +84,32 @@ } ] +Test empty config source: + + $ cat < emptysource.py + > def reposetup(ui, repo): + > ui.setconfig('empty', 'source', 'value') + > EOF + $ cp .hg/hgrc .hg/hgrc.orig + $ cat <> .hg/hgrc + > [extensions] + > emptysource = `pwd`/emptysource.py + > EOF + + $ hg config --debug empty.source + read config from: * (glob) + none: value + $ hg config empty.source -Tjson + [ + { + "name": "empty.source", + "source": "", + "value": "value" + } + ] + + $ cp .hg/hgrc.orig .hg/hgrc + Test "%unset" $ cat >> $HGRCPATH <