Patchwork D6324: help: register the 'gpg' command category and give it a description

login
register
mail settings
Submitter phabricator
Date May 3, 2019, 4:50 p.m.
Message ID <5919b3e01d06fdfbd172379df0ff9a7d@localhost.localdomain>
Download mbox | patch
Permalink /patch/39932/
State Not Applicable
Headers show

Comments

phabricator - May 3, 2019, 4:50 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGade02721d3fa: help: register the &#039;gpg&#039; command category and give it a description (authored by Sietse, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6324?vs=14957&id=14993

REVISION DETAIL
  https://phab.mercurial-scm.org/D6324

AFFECTED FILES
  hgext/gpg.py

CHANGE DETAILS




To: Sietse, #hg-reviewers, martinvonz
Cc: rdamazio, martinvonz, mercurial-devel

Patch

diff --git a/hgext/gpg.py b/hgext/gpg.py
--- a/hgext/gpg.py
+++ b/hgext/gpg.py
@@ -49,6 +49,11 @@ 
 
 # Custom help category
 _HELP_CATEGORY = 'gpg'
+help.CATEGORY_ORDER.insert(
+    help.CATEGORY_ORDER.index(registrar.command.CATEGORY_HELP),
+    _HELP_CATEGORY
+)
+help.CATEGORY_NAMES[_HELP_CATEGORY] = 'Signing changes (GPG)'
 
 class gpg(object):
     def __init__(self, path, key=None):