# HG changeset patch # User Pierre-Yves David # Date 1498231169 -7200 # Node ID c41cbe98822c5cd5a9a776d47b90c25e2ee11063 # Parent e70cbae4c4e60108aa7dc31fc9230ba820861f13 configitems: register 'ui.interactive' That item default value is a bit special (None) so this adds a second proof that everything is still working fine. diff -r e70cbae4c4e6 -r c41cbe98822c mercurial/configitems.py --- a/mercurial/configitems.py Sun Jun 25 14:41:12 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 23 17:19:29 2017 +0200 @@ -42,6 +42,9 @@ coreconfigitem('ui', 'clonebundleprefers', default=[], ) +coreconfigitem('ui', 'interactive', + default=None, +) coreconfigitem('ui', 'quiet', default=False, ) diff -r e70cbae4c4e6 -r c41cbe98822c mercurial/ui.py --- a/mercurial/ui.py Sun Jun 25 14:41:12 2017 +0200 +++ b/mercurial/ui.py Fri Jun 23 17:19:29 2017 +0200 @@ -1139,7 +1139,7 @@ This function refers to input only; for output, see `ui.formatted()'. ''' - i = self.configbool("ui", "interactive", None) + i = self.configbool("ui", "interactive") if i is None: # some environments replace stdin without implementing isatty # usually those are non-interactive diff -r e70cbae4c4e6 -r c41cbe98822c tests/test-devel-warnings.t --- a/tests/test-devel-warnings.t Sun Jun 25 14:41:12 2017 +0200 +++ b/tests/test-devel-warnings.t Fri Jun 23 17:19:29 2017 +0200 @@ -211,5 +211,6 @@ $ hg --config "extensions.buggyconfig=${TESTTMP}/buggyconfig.py" buggyconfig devel-warn: specifying a default value for a registered config item: 'ui.quiet' 'False' at: $TESTTMP/buggyconfig.py:* (cmdbuggyconfig) (glob) + devel-warn: specifying a default value for a registered config item: 'ui.interactive' 'None' at: $TESTTMP/buggyconfig.py:* (cmdbuggyconfig) (glob) $ cd ..