[PATCH V2] histedit: add a config allowing changing histedit rule line length limit

Jordi GutiƩrrez Hermoso jordigh at octave.org
Thu Feb 26 14:42:24 CST 2015


On Thu, 2015-02-26 at 10:14 -0800, Mateusz Kwapich wrote:
> # HG changeset patch
> # User Mateusz Kwapich <mitrandir at fb.com>
> # Date 1421880324 28800
> #      Wed Jan 21 14:45:24 2015 -0800
> # Node ID e75e5456ec6971fb50263ca4526291d9a10ff01a
> # Parent  ff5caa8dfd993680d9602ca6ebb14da9de10d5f4
> histedit: add a config allowing changing histedit rule line length limit
[snip]
> +Histedit rule lines are truncated to 80 characters by default. You can
> +customize this behaviour by setting histedit.linelen in your hg config
> +to desired length.

Sorry to bikeshed more, but I think the typical way to document such
features is to show what should be copied to the config file. I would
write,

    Histedit rule lines are truncated to 80 characters by default. You
    can customise this behaviour by setting a different length in your
    configuration file:

        [histedit]
        linelen = 120      # truncate rule lines at 120 characters

This appears to be the style in e.g. `hg help -e patchbomb`, `hg help
-e progress` or `hg help -e highlight`.




More information about the Mercurial-devel mailing list