Show More
@@ -168,8 +168,8 b' def parseargs():' | |||||
168 | parser.add_option('--extra-config-opt', action="append", |
|
168 | parser.add_option('--extra-config-opt', action="append", | |
169 | help='set the given config opt in the test hgrc') |
|
169 | help='set the given config opt in the test hgrc') | |
170 |
|
170 | |||
171 | for option, default in defaults.items(): |
|
171 | for option, (envvar, default) in defaults.items(): | |
172 |
defaults[option] = |
|
172 | defaults[option] = type(default)(os.environ.get(envvar, default)) | |
173 | parser.set_defaults(**defaults) |
|
173 | parser.set_defaults(**defaults) | |
174 | (options, args) = parser.parse_args() |
|
174 | (options, args) = parser.parse_args() | |
175 |
|
175 |
General Comments 0
You need to be logged in to leave comments.
Login now