[PATCH 0 of 4] refactor commands.help_
Henri Wiechers
hwiechers at gmail.com
Tue Jan 12 08:55:20 UTC 2010
These patches refactor the addglobalopts nested function in commands.help_.
addglobalopts displays the global options and a 'see also' message depending
on the command parameters and options used. These patches make addglobalopts
simpler by getting callers to supply it with the message instead of it
determining which one to display.
This makes it easier to see which message the gets displayed as well as making
it easier to add messages for other conditions.
More information about the Mercurial-devel
mailing list