Console autocomplete of hg* crashes
Command autocomplete in the console using the Tab key is mostly broken:
- Trying to complete "h", "he" or "hel" fails... until help is run. After, completion works.
- Trying to complete "hg" or hg *" ("hg" followed by a space followed by any string, for example "hg diff", "hg @" or "hg z") crashes TortoiseHg as soon as Tab is pressed, with the following error:
** Mercurial version (6.4.2). TortoiseHg version (6.4.2)
** Command:
** CWD: C:\windows\System32
** Encoding: cp1252
** Extensions loaded: mq, strip, tortoisehg.util.configitems
** Python version: 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-5.15.2 PyQt-5.15.7 QScintilla-2.13.3
Traceback (most recent call last):
File "tortoisehg\hgqt\docklog.pyc", line 398, in completeCommandText
File "tortoisehg\hgqt\docklog.pyc", line 344, in _commandComplete
File "tortoisehg\hgqt\docklog.pyc", line 340, in findhgcmd
TypeError: a bytes-like object is required, not 'str'
This affects Windows 10 and happens everytime.