comparison tests/test-hgrc.t @ 14748:1b8c70c9f47c stable

dispatch: make sure unspecified global ui options don't override old values
author Idan Kamara <idankk86@gmail.com>
date Fri, 24 Jun 2011 12:16:14 +0300
parents a086b91ce7fb
children 188936b334b1
comparison
equal deleted inserted replaced
14746:72e4fcb43227 14748:1b8c70c9f47c
51 51
52 Copyright (C) 2005-2011 Matt Mackall and others 52 Copyright (C) 2005-2011 Matt Mackall and others
53 This is free software; see the source for copying conditions. There is NO 53 This is free software; see the source for copying conditions. There is NO
54 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 54 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
55 $ unset FAKEPATH 55 $ unset FAKEPATH
56
57 make sure unspecified global ui options don't override old values
58
59 $ hg showconfig --config ui.verbose=True --quiet
60 ui.verbose=True
61 ui.quiet=True
56 62
57 username expansion 63 username expansion
58 64
59 $ olduser=$HGUSER 65 $ olduser=$HGUSER
60 $ unset HGUSER 66 $ unset HGUSER
132 138
133 $ HGPLAIN=; export HGPLAIN 139 $ HGPLAIN=; export HGPLAIN
134 $ hg showconfig --config ui.traceback=True --debug 140 $ hg showconfig --config ui.traceback=True --debug
135 read config from: $TESTTMP/hgrc 141 read config from: $TESTTMP/hgrc
136 none: ui.traceback=True 142 none: ui.traceback=True
137 none: ui.verbose=False
138 none: ui.debug=True 143 none: ui.debug=True
139 none: ui.quiet=False
140 144
141 plain mode with exceptions 145 plain mode with exceptions
142 146
143 $ cat > plain.py <<EOF 147 $ cat > plain.py <<EOF
144 > def uisetup(ui): 148 > def uisetup(ui):
150 $ hg showconfig --config ui.traceback=True --debug 154 $ hg showconfig --config ui.traceback=True --debug
151 plain: True 155 plain: True
152 read config from: $TESTTMP/hgrc 156 read config from: $TESTTMP/hgrc
153 $TESTTMP/hgrc:15: extensions.plain=./plain.py 157 $TESTTMP/hgrc:15: extensions.plain=./plain.py
154 none: ui.traceback=True 158 none: ui.traceback=True
155 none: ui.verbose=False
156 none: ui.debug=True 159 none: ui.debug=True
157 none: ui.quiet=False
158 $ unset HGPLAIN 160 $ unset HGPLAIN
159 $ hg showconfig --config ui.traceback=True --debug 161 $ hg showconfig --config ui.traceback=True --debug
160 plain: True 162 plain: True
161 read config from: $TESTTMP/hgrc 163 read config from: $TESTTMP/hgrc
162 $TESTTMP/hgrc:15: extensions.plain=./plain.py 164 $TESTTMP/hgrc:15: extensions.plain=./plain.py
163 none: ui.traceback=True 165 none: ui.traceback=True
164 none: ui.verbose=False
165 none: ui.debug=True 166 none: ui.debug=True
166 none: ui.quiet=False
167 $ HGPLAINEXCEPT=i18n; export HGPLAINEXCEPT 167 $ HGPLAINEXCEPT=i18n; export HGPLAINEXCEPT
168 $ hg showconfig --config ui.traceback=True --debug 168 $ hg showconfig --config ui.traceback=True --debug
169 plain: True 169 plain: True
170 read config from: $TESTTMP/hgrc 170 read config from: $TESTTMP/hgrc
171 $TESTTMP/hgrc:15: extensions.plain=./plain.py 171 $TESTTMP/hgrc:15: extensions.plain=./plain.py
172 none: ui.traceback=True 172 none: ui.traceback=True
173 none: ui.verbose=False
174 none: ui.debug=True 173 none: ui.debug=True
175 none: ui.quiet=False