Show More
@@ -42,6 +42,9 b" coreconfigitem('patch', 'fuzz'," | |||
|
42 | 42 | coreconfigitem('ui', 'clonebundleprefers', |
|
43 | 43 | default=[], |
|
44 | 44 | ) |
|
45 | coreconfigitem('ui', 'interactive', | |
|
46 | default=None, | |
|
47 | ) | |
|
45 | 48 | coreconfigitem('ui', 'quiet', |
|
46 | 49 | default=False, |
|
47 | 50 | ) |
@@ -1139,7 +1139,7 b' class ui(object):' | |||
|
1139 | 1139 | |
|
1140 | 1140 | This function refers to input only; for output, see `ui.formatted()'. |
|
1141 | 1141 | ''' |
|
1142 |
i = self.configbool("ui", "interactive" |
|
|
1142 | i = self.configbool("ui", "interactive") | |
|
1143 | 1143 | if i is None: |
|
1144 | 1144 | # some environments replace stdin without implementing isatty |
|
1145 | 1145 | # usually those are non-interactive |
@@ -211,5 +211,6 b' Test warning on config option access and' | |||
|
211 | 211 | |
|
212 | 212 | $ hg --config "extensions.buggyconfig=${TESTTMP}/buggyconfig.py" buggyconfig |
|
213 | 213 | devel-warn: specifying a default value for a registered config item: 'ui.quiet' 'False' at: $TESTTMP/buggyconfig.py:* (cmdbuggyconfig) (glob) |
|
214 | devel-warn: specifying a default value for a registered config item: 'ui.interactive' 'None' at: $TESTTMP/buggyconfig.py:* (cmdbuggyconfig) (glob) | |
|
214 | 215 | |
|
215 | 216 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now