comparison tests/test-ui-config @ 5178:18a9fbb5cd78

dispatch: move command dispatching into its own module - move command dispatching functions from commands and cmdutil to dispatch - change findcmd to take a table argument - remove circular import of commands in cmdutil - privatize helper functions in dispatch
author Matt Mackall <mpm@selenic.com>
date Wed, 15 Aug 2007 16:55:13 -0500
parents 9881abfc0e44
children 7fd0616b3d80
comparison
equal deleted inserted replaced
5177:92236732d5a1 5178:18a9fbb5cd78
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import ConfigParser 3 import ConfigParser
4 from mercurial import ui, util, cmdutil 4 from mercurial import ui, util, dispatch
5 5
6 testui = ui.ui() 6 testui = ui.ui()
7 parsed = cmdutil.parseconfig([ 7 parsed = dispatch._parseconfig([
8 'values.string=string value', 8 'values.string=string value',
9 'values.bool1=true', 9 'values.bool1=true',
10 'values.bool2=false', 10 'values.bool2=false',
11 'lists.list1=foo', 11 'lists.list1=foo',
12 'lists.list2=foo bar baz', 12 'lists.list2=foo bar baz',