##// END OF EJS Templates
errors: raise InputError on early parse error in dispatch...
Martin von Zweigbergk -
r47119:db5dddb3 default
parent child Browse files
Show More
@@ -849,7 +849,7 b' def _parseconfig(ui, config):'
849 ui.setconfig(section, name, value, b'--config')
849 ui.setconfig(section, name, value, b'--config')
850 configs.append((section, name, value))
850 configs.append((section, name, value))
851 except (IndexError, ValueError):
851 except (IndexError, ValueError):
852 raise error.Abort(
852 raise error.InputError(
853 _(
853 _(
854 b'malformed --config option: %r '
854 b'malformed --config option: %r '
855 b'(use --config section.name=value)'
855 b'(use --config section.name=value)'
@@ -217,19 +217,19 b' Testing --config:'
217 quuxfoo
217 quuxfoo
218 $ hg --cwd c --config '' tip -q
218 $ hg --cwd c --config '' tip -q
219 abort: malformed --config option: '' (use --config section.name=value)
219 abort: malformed --config option: '' (use --config section.name=value)
220 [255]
220 [10]
221 $ hg --cwd c --config a.b tip -q
221 $ hg --cwd c --config a.b tip -q
222 abort: malformed --config option: 'a.b' (use --config section.name=value)
222 abort: malformed --config option: 'a.b' (use --config section.name=value)
223 [255]
223 [10]
224 $ hg --cwd c --config a tip -q
224 $ hg --cwd c --config a tip -q
225 abort: malformed --config option: 'a' (use --config section.name=value)
225 abort: malformed --config option: 'a' (use --config section.name=value)
226 [255]
226 [10]
227 $ hg --cwd c --config a.= tip -q
227 $ hg --cwd c --config a.= tip -q
228 abort: malformed --config option: 'a.=' (use --config section.name=value)
228 abort: malformed --config option: 'a.=' (use --config section.name=value)
229 [255]
229 [10]
230 $ hg --cwd c --config .b= tip -q
230 $ hg --cwd c --config .b= tip -q
231 abort: malformed --config option: '.b=' (use --config section.name=value)
231 abort: malformed --config option: '.b=' (use --config section.name=value)
232 [255]
232 [10]
233
233
234 Testing --debug:
234 Testing --debug:
235
235
General Comments 0
You need to be logged in to leave comments. Login now