[PATCH 1 of 2 V2] show: fix formatting of multiple commands
Yuya Nishihara
yuya at tcha.org
Thu Apr 13 08:25:56 EDT 2017
On Wed, 12 Apr 2017 20:31:35 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1492054124 25200
> # Wed Apr 12 20:28:44 2017 -0700
> # Node ID 60177a9b778cb65fdefd4486ce51475a746c4cb6
> # Parent 6ce09d2cc2db6aeed0b46da1b26426798d91833c
> show: fix formatting of multiple commands
Queued these, thanks.
> +def _updatedocstring():
> + longest = max(map(len, showview._table.keys()))
> + entries = []
> + for key in sorted(showview._table.keys()):
> + entries.append(pycompat.sysstr(' %s %s' % (
> + key.ljust(longest), showview._table[key]._origdoc)))
Perhaps you want a field definition list: ':%s: %s'.
More information about the Mercurial-devel
mailing list