equal
deleted
inserted
replaced
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, []) |