Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 837
    • Issues 837
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #5797

Closed
Open
Created May 24, 2022 by Aay Jay Chan@aayjaychanDeveloper

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking