#1092199 mercurial-git: Extension fails on Mercurial launch with error

#1092199#5
Date:
2025-01-06 04:11:34 UTC
From:
To:
I installed stable/bookworm. I installed mercurial and mercurial-git. Both
worked. I upgraded to testing/trixie. Now whenever I run hg it prints

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mercurial/extensions.py", line 256, in
_runuisetup
    uisetup(ui)
  File "/usr/lib/python3/dist-packages/mercurial/exthelper.py", line 148, in
finaluisetup
    extensions.wrapfunction(cont, funcname, wrapper)
  File "/usr/lib/python3/dist-packages/mercurial/extensions.py", line 679, in
wrapfunction
    raise TypeError(msg)
TypeError: b'wrapfunction target name should be `str`, not `bytes`'
*** failed to set up extension hggit: b'wrapfunction target name should be
`str`, not `bytes`'

hg functions, but it prints this warning at every boot, and any hg-git related
feature fails. For example `hg clone git@github.com:baldurk/renderdoc.git`
prints the warning, then prints "abort: repository
git@github.com:baldurk/renderdoc.git not found".

I don't know how to test unstable, sorry.

   * What led up to the situation?
Upgraded to Trixie
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Removed [extensions] hggit= from my ~/.hgrc, which made the warnings stop, but
also meant I cannot use mercurial-git.

*** End of the template - remove these template lines ***