Python 3 Windows file context menu error
Selecting file context menu items such as HG Commit
, Revision History
, Visual Diff
causes error:
#!python
** Mercurial version (6.1.2+hg305.a13398ef7e55). TortoiseHg version (6.1.2+12-e8682f4e7a70)
** Command: --nofork commit --listfile C:\Users\AAYJAY~1\AppData\Local\Temp\THG8107.tmp
** CWD: C:\Users\aayjaychan\Documents\aaa
** Encoding: utf-8
** Extensions loaded: absorb, churn, convert, eol, evolve 10.5.1, git (pygit2 1.9.1), hggit 1.0.0 (dulwich 0.20.35), histedit, phabricator, rebase, relink, share, strip, topic 0.24.1.dev, tortoisehg.util.configitems
** Python version: 3.9.12 (tags/v3.9.12:b28265d, Mar 23 2022, 23:52:46) [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.6 QScintilla-2.13.2
Traceback (most recent call last):
File "tortoisehg\hgqt\run.pyc", line 139, in dispatch
File "tortoisehg\hgqt\run.pyc", line 347, in _runcatch
File "tortoisehg\hgqt\run.pyc", line 419, in runcommand
File "tortoisehg\hgqt\run.pyc", line 278, in get_files_from_listfile
File "mercurial\pathutil.pyc", line 234, in canonpath
TypeError: startswith first arg must be str or a tuple of str, not bytes