Mercurial > public > mercurial-scm > hg
diff mercurial/dispatch.py @ 15020:607f1434501d
help: drop with_version
If --version is specified, we print the version and exit (as documented).
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 04 Aug 2011 15:08:41 -0500 |
parents | f4522df38c65 |
children | 1e45b92f4fb2 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Tue Aug 02 15:21:10 2011 -0400 +++ b/mercurial/dispatch.py Thu Aug 04 15:08:41 2011 -0500 @@ -622,10 +622,10 @@ for ui_ in uis: ui_.setconfig('web', 'cacerts', '') + if options['version']: + return commands.version_(ui) if options['help']: - return commands.help_(ui, cmd, options['version']) - elif options['version']: - return commands.version_(ui) + return commands.help_(ui, cmd) elif not cmd: return commands.help_(ui, 'shortlist')