{SELECTEDFILES} in custom tool command is expanded with `b'...'`
I have a custom tool that extracts selected files to the working directory, with the following config:
[tortoisehg-tools]
extract.command = hg amend --extract {SELECTEDFILES}
extract.enable = istrue
extract.icon = hg-undo
extract.label = Extract file(s) from changeset
extract.showoutput = True
extract.tooltip = Extract selected file(s) from changeset to working directory
When running on Windows with Python 2.7, it runs as expected. However, when running on Linux with Python 3.10, the selected files are not extracted. Command printed in console:
hg amend --extract /mnt/data/projects/thg/b'tortoisehg/hgqt/repowidget.py'
Notice the b'...'
in file path.
TortoiseHg version 6.0
with Mercurial-6.0.2, Python-3.10.2, PyQt-5.15.6, Qt-5.15.2