HomePhabricator

chistedit: make command's help text match hg style

Authored by spectral.

Description

chistedit: make command's help text match hg style

Currently if chistedit shows up in hg help (no arguments) output, it looks
like this, where it has multiple sentences, starts with a capital letter, and
takes up multiple lines:

chistedit     Provides a ncurses interface to histedit. Press ? in chistedit
              mode

With this change, I'm making it intentionally resemble histedit's text and it
looks like this:

histedit      interactively edit changeset history
chistedit     interactively edit changeset history via a curses interface

Similarly, if one runs hg help histedit, the first few lines look like this:

hg histedit [OPTIONS] ([ANCESTOR] | --outgoing [URL])

interactively edit changeset history

    This command lets you edit a linear series of changesets (up to and
    including the working directory, which should be clean). You can:

This change makes hg help chistedit look similar:

hg chistedit ANCESTOR

interactively edit changeset history via a curses interface

    Provides a ncurses interface to histedit. Press ? in chistedit mode to see
    an extensive help. Requires python-curses to be installed.

Differential Revision: https://phab.mercurial-scm.org/D1878

Details