topic: fix some API to make it more robust
The new code can deal with changes in upstream mercurial.
--HG-- branch : stable
This instance will be upgraded to Heptapod 17.3.0rc1 on 2024-09-19 between 16:00 to 17:00 UTC+2
The new code can deal with changes in upstream mercurial.
--HG-- branch : stable