[PATCH] histedit: Show file names in multiple line format

Martin von Zweigbergk martinvonz at google.com
Thu May 2 23:51:40 UTC 2019


I've queued these mostly bases on Jordi's review. Thanks to both of you!


On Thu, Apr 25, 2019 at 8:44 PM Yu Feng <rainwoodman at gmail.com> wrote:

> diff --git a/hgext/histedit.py b/hgext/histedit.py
> --- a/hgext/histedit.py
> +++ b/hgext/histedit.py
> @@ -1227,6 +1227,13 @@ def addln(win, y, x, line, color=None):
>      else:
>          win.addstr(y, x, line)
>
> +def _trunc_head(line, n):
> +    if len(line) <= n: return line
> +    return '> ' + line[-(n - 2):]
> +def _trunc_tail(line, n):
> +    if len(line) <= n: return line
> +    return line[:n - 2] + ' >'
>

test-check-pylint.t points out that the lines should be broken after the
colons (please install pylint to run that test in the future). I've added
newlines after the colons above in flight this time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20190502/b3b834f3/attachment.html>


More information about the Mercurial-devel mailing list