Patchwork [1,of,3] extdiff: register the configuration generated commands with a help category

login
register
mail settings
Submitter Matt Harbison
Date Dec. 4, 2018, 5:21 a.m.
Message ID <faaf565508106fb08151.1543900868@Envy>
Download mbox | patch
Permalink /patch/36940/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 4, 2018, 5:21 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1543888788 18000
#      Mon Dec 03 20:59:48 2018 -0500
# Node ID faaf565508106fb08151ee169b9aa4b937374cc1
# Parent  bda0cb4839fb8618118e5dc7ab4b6742992eabd4
extdiff: register the configuration generated commands with a help category

Otherwise, 'extdiff' shows up under file management and the rest of the commands
are at the bottom under 'Uncategorized'.
Yuya Nishihara - Dec. 4, 2018, 11:27 a.m.
On Tue, 04 Dec 2018 00:21:08 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@yahoo.com>
> # Date 1543888788 18000
> #      Mon Dec 03 20:59:48 2018 -0500
> # Node ID faaf565508106fb08151ee169b9aa4b937374cc1
> # Parent  bda0cb4839fb8618118e5dc7ab4b6742992eabd4
> extdiff: register the configuration generated commands with a help category

Queued this for stable, thanks.

Patch

diff --git a/hgext/extdiff.py b/hgext/extdiff.py
--- a/hgext/extdiff.py
+++ b/hgext/extdiff.py
@@ -429,6 +429,7 @@  def uisetup(ui):
             if args:
                 cmdline += ' ' + args
         command(cmd, extdiffopts[:], _('hg %s [OPTION]... [FILE]...') % cmd,
+                helpcategory=command.CATEGORY_FILE_CONTENTS,
                 inferrepo=True)(savedcmd(path, cmdline))
 
 # tell hggettext to extract docstrings from these functions: