mercurial/pure/__init__.py
author Augie Fackler <augie@google.com>
Tue, 21 Feb 2017 14:20:05 -0500
changeset 31080 ab20491b1760
parent 16438 28a90cdf0ca0
permissions -rw-r--r--
dispatch: rearrange 'unknown command' code to better employ pager dispatch calls help like a ninja if you give it a truly unknown command, and that might want to be paged. If it gets paged, then the 'hg: unknown command' text gets eaten by a grue, unless we call the pager first. This change rearranges the codepaths so we can safely only invoke the pager in the case where we'll have long output from the help command code, rather than just a short message like "did you mean stat instead of start" or "fetch is provided by the fetch extension".