patchbomb:
0c61124ad877 moved setremoteconfig into cmdutil
dispatch: restore a dropped shlex import
Add test-dispatch as a place for command parsing and dispatch tests.
Revive commands.dispatch as a simple way to call hg from other pythons scripts.
This was already used by hg-ssh and others and is really convenient if you
just want a native equivalent of calling the command line version.