Mercurial-like command dispatch