comparison mercurial/help.py @ 49664:f56873a7284c

branching: merge stable into default
author Raphaël Gomès <rgomes@octobus.net>
date Fri, 25 Nov 2022 15:14:40 +0100
parents 2a70d1fc70c4 f09bc2ed9100
children 822320591c46
comparison
equal deleted inserted replaced
49663:45d7b8c380d7 49664:f56873a7284c
905 # Check that all categories have an order. 905 # Check that all categories have an order.
906 missing_order = set(cats.keys()) - set(CATEGORY_ORDER) 906 missing_order = set(cats.keys()) - set(CATEGORY_ORDER)
907 if missing_order: 907 if missing_order:
908 ui.develwarn( 908 ui.develwarn(
909 b'help categories missing from CATEGORY_ORDER: %s' 909 b'help categories missing from CATEGORY_ORDER: %s'
910 % missing_order 910 % stringutil.forcebytestr(missing_order)
911 ) 911 )
912 912
913 # List per category. 913 # List per category.
914 for cat in CATEGORY_ORDER: 914 for cat in CATEGORY_ORDER:
915 catfns = cats.get(cat, []) 915 catfns = cats.get(cat, [])
938 # Check that all categories have an order. 938 # Check that all categories have an order.
939 missing_order = set(topiccats.keys()) - set(TOPIC_CATEGORY_ORDER) 939 missing_order = set(topiccats.keys()) - set(TOPIC_CATEGORY_ORDER)
940 if missing_order: 940 if missing_order:
941 ui.develwarn( 941 ui.develwarn(
942 b'help categories missing from TOPIC_CATEGORY_ORDER: %s' 942 b'help categories missing from TOPIC_CATEGORY_ORDER: %s'
943 % missing_order 943 % stringutil.forcebytestr(missing_order)
944 ) 944 )
945 945
946 # Output topics per category. 946 # Output topics per category.
947 for cat in TOPIC_CATEGORY_ORDER: 947 for cat in TOPIC_CATEGORY_ORDER:
948 topics = topiccats.get(cat, []) 948 topics = topiccats.get(cat, [])