sslutil: document and slightly refactor sslkwargs
This will help me and any reviewers keep sane as this code
is refactored.
localrepo: remove a couple of local type aliases
The local aliases are unused now, and were confusing mypy's type
checker.
chgserver: add [alias] to confighash
The [alias] config section affects a global state: commands.table. It's hard
to trace whether an alias is added by a config option or an extension, and
add/remove aliases in a safe way per chg request. It will hurt performance a
bit if we clean the table and parse aliases every time. Therefore let's just
add it to confighash.
This will make chg pass test-pager.t.
devel: use the new 'config' argument of the develwarn in deprecwarn
Controling all deprecation warnings with the same config seems sensible. This
mirror a fix (about missing gating) submitted for stable but with the new API.
develwarn: move config gating inside the develwarn function
The config gating is almost always the same and contributor tend to forget it.
We move the logic inside the function. Call site will be updated in later
changeset. We might make the sub config mandatory in the future (once all old
call sites are gone).
help: fix the display for `hg help internals.revlogs` (
issue5227)
It previously aborted saying the help section wasn't found. Credit to Yuya for
figuring out the fix.