See JENKINS-35522 and JENKINS-35525 for typical changes
workflow-cps-global-lib not compatible with mercurial
Credentials dropdowns empty when configuring external libraries at the global level
While here, might as well implement retrieve(String revision, TaskListener) and retrieveRevisions and relax dropdowns as in git PR 437.
Last comment better captured in JENKINS-41657.