diff mercurial/registrar.py @ 40414:444861dc1e55

help: displaying documented aliases by default This makes aliases be displayed in "hg help" when they have a :doc config entry, and also allows them to be assigned to a category with :category. Differential Revision: https://phab.mercurial-scm.org/D5087
author rdamazio@google.com
date Thu, 18 Oct 2018 19:57:05 -0700
parents fa88170c10bb
children 13f50ea8ac3b
line wrap: on
line diff
--- a/mercurial/registrar.py	Sat Oct 13 05:43:39 2018 -0700
+++ b/mercurial/registrar.py	Thu Oct 18 19:57:05 2018 -0700
@@ -169,6 +169,10 @@
     """
 
     # Command categories for grouping them in help output.
+    # These can also be specified for aliases, like:
+    # [alias]
+    # myalias = something
+    # myalias:category = repo
     CATEGORY_REPO_CREATION = 'repo'
     CATEGORY_REMOTE_REPO_MANAGEMENT = 'remote'
     CATEGORY_COMMITTING = 'commit'