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 829
    • Issues 829
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • 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
  • #5551
Closed
Open
Created Jun 10, 2020 by Bitbucket Importer@bitbucket_importerOwner

Problem with 'Visual Diff' option - unicode characters

Created originally on Bitbucket by zork (Łukasz Michalski)

Trying to use ‘Visual diff' between two arbitrary revisions:

    ** Mercurial version (5.4).  TortoiseHg version (5.4)
    ** Command: --nofork
    ** CWD: /home/zork
    ** Encoding: UTF-8
    ** Extensions loaded: strip, tortoisehg.util.configitems
    ** Python version: 3.8.3 (default, May 17 2020, 18:15:42) [GCC 10.1.0]
    ** System: Linux serenity 5.6.14-arch1-1 #1 SMP PREEMPT Wed, 20 May 2020 20:43:19 +0000 x86_64
    ** Qt-5.14.2 PyQt-5.14.2 QScintilla-2.11.4
    Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repowidget.py", line 1397, in diffPair
        dlg = visdiff.visualdiff(self.repo.ui, self.repo, [],
      File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/visdiff.py", line 268, in visualdiff
        detectedtools = hglib.difftools(repo.ui)
      File "/usr/lib/python3.8/site-packages/tortoisehg/util/hglib.py", line 521, in difftools
        diffopts = pycompat.shlexsplit(diffopts)
      File "/usr/lib/python3.8/site-packages/mercurial/pycompat.py", line 377, in shlexsplit
        ret = shlex.split(s.decode('latin-1'), comments, posix)
    AttributeError: 'NoneType' object has no attribute 'decode'

The problem may be related to unicode charaters in commit logs

I get the same stacktrace when double-clicking on any revision in my repo.

Arch Linux, thg 5.4 and mercurial build from AUR.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking