Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
thg
thg
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 798
    • Issues 798
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

There will be about 1h of downtime on 2020-03-02 at 13:00 UTC+1 (change of servers and upgrade to Heptapod 0.20.0 final)

  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #5551

Closed
Open
Opened 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.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: mercurial/tortoisehg/thg#5551