Mercurial > public > mercurial-scm > hg-stable
diff hg @ 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 | 63b9d2deed48 |
children | 55860a45bbf2 |
line wrap: on
line diff
--- a/hg Wed Aug 15 16:10:36 2007 -0500 +++ b/hg Wed Aug 15 16:55:13 2007 -0500 @@ -7,5 +7,5 @@ # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. -import mercurial.commands -mercurial.commands.run() +import mercurial.dispatch +mercurial.dispatch.run()