UnicodeDecodeError (possibly hg-git) when opening repos since TortoiseHg 3.6.0
Created originally on Bitbucket by Zoltán Lehóczky
With Tortoisehg 3.5.2 (x64 Windows 8.1) there was no issue, but after updating to 3.6.0 (or 3.6.1) I receive the below error when opening a repository (just very simple Mercurial-only repos, no git clones) in TortoiseHg Workbench:
#!python
#!python
** Mercurial version (3.6.1). TortoiseHg version (3.6.1)
** Command:
** CWD: C:\Program Files\TortoiseHg
** Encoding: cp1250
** Extensions loaded: rebase, strip, mq, hggit, mercurial_keyring, eol
** Python version: 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-4.8.6 PyQt-4.11.3 QScintilla-2.8.4
Traceback (most recent call last):
File "tortoisehg\hgqt\repowidget.pyo", line 175, in _initView
File "tortoisehg\hgqt\repowidget.pyo", line 718, in _updateRepoViewForModel
File "tortoisehg\hgqt\repomodel.pyo", line 638, in defaultIndex
File "tortoisehg\hgqt\repomodel.pyo", line 654, in indexFromRev
File "tortoisehg\hgqt\repomodel.pyo", line 374, in _ensureBuilt
File "tortoisehg\hgqt\graph.pyo", line 866, in build_nodes
File "tortoisehg\hgqt\graph.pyo", line 604, in _iter_graphnodes
File "tortoisehg\hgqt\graph.pyo", line 752, in fromchangectx
File "tortoisehg\hgqt\thgrepo.pyo", line 956, in thgmqappliedpatch
File "tortoisehg\hgqt\thgrepo.pyo", line 948, in _thgmqpatchtags
File "mercurial\context.pyo", line 539, in tags
File "mercurial\localrepo.pyo", line 744, in nodetags
File "mercurial\util.pyo", line 534, in __get__
File "mercurial\localrepo.pyo", line 668, in _tagscache
File "hggit\hgrepo.pyo", line 49, in _findtags
File "hggit\git_handler.pyo", line 133, in remote_refs
File "hggit\git_handler.pyo", line 214, in load_remote_refs
File "mercurial\util.pyo", line 534, in __get__
File "hggit\git_handler.pyo", line 140, in git
File "dulwich\repo.pyo", line 677, in __init__
File "dulwich\hooks.pyo", line 111, in __init__
File "dulwich\hooks.pyo", line 78, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 13: ordinal not in range(128)
This prevents me from doing anything with the repo as the changeset list is not loaded either.
I'm using the bundled hg-git version. The only config I have that might be related is this eol config in Mercurial.ini:
#!python
[eol]
only-consistent = False
Probably unrelated but I'd like to note that I got a "The setup was unable to close all applications..." warning during setup too (but after killing explorer.exe manually setup resumed) which I can't remember seeing with previous versions (and after downgrading to 3.5.2 I can confirm that the setup just runs smoothly).