thg issueshttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues2020-12-02T12:42:28Zhttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5659Revset query autocompletes to author('b\'…\'')2020-12-02T12:42:28ZSimon SapinRevset query autocompletes to author('b\'…\'')In TortoiseHg version 5.6 with Mercurial-5.6, Python-3.8.6, PyQt-5.15.1, Qt-5.15.1.
In the "revision set query" search bar I started typing `author`, and thg auto-completed `author('b\'My Name <me@example.net>\'')` (with the name and em...In TortoiseHg version 5.6 with Mercurial-5.6, Python-3.8.6, PyQt-5.15.1, Qt-5.15.1.
In the "revision set query" search bar I started typing `author`, and thg auto-completed `author('b\'My Name <me@example.net>\'')` (with the name and email from `ui.username` hg config). That query gives zero results.
It looks like a byte string was formatted with `repr`, then then resulting Unicode string was backslash-escaped to be a string literal in the query language. It should probably be decoded (in UTF-8?) instead.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/4782Cannot pull or clone repo2020-07-04T20:37:11ZBitbucket ImporterCannot pull or clone repo*Created originally on Bitbucket by Anonymous*
Error
Thu May 18 11:07:33 GMT+100 2017: Unable to pull from remote repository: http://server/hgweb.cgi/RepoName/ - [** unknown exception encountered, please report by visiting, ** https://...*Created originally on Bitbucket by Anonymous*
Error
Thu May 18 11:07:33 GMT+100 2017: Unable to pull from remote repository: http://server/hgweb.cgi/RepoName/ - [** unknown exception encountered, please report by visiting, ** https://mercurial-scm.org/wiki/BugTracker, ** Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)], ** Mercurial Distributed SCM (version 4.0), ** Extensions loaded: , Traceback (most recent call last):, File "hg", line 49, in <module>, File "mercurial\dispatch.pyo", line 60, in run, File "mercurial\dispatch.pyo", line 126, in dispatch, File "mercurial\dispatch.pyo", line 216, in _runcatch, File "mercurial\dispatch.pyo", line 225, in callcatch, File "mercurial\dispatch.pyo", line 205, in _runcatchfunc, File "mercurial\dispatch.pyo", line 901, in _dispatch, File "mercurial\dispatch.pyo", line 650, in runcommand, File "mercurial\dispatch.pyo", line 909, in _runcommand, File "mercurial\dispatch.pyo", line 898, in <lambda>, File "mercurial\util.pyo", line 1037, in check, File "mercurial\commands.pyo", line 5912, in pull, File "mercurial\exchange.pyo", line 1215, in pull, File "mercurial\exchange.pyo", line 1353, in _pullbundle2, File "mercurial\wireproto.pyo", line 417, in getbundle, File "mercurial\bundle2.pyo", line 661, in getunbundler, File "mercurial\changegroup.pyo", line 38, in readexactly, File "mercurial\util.pyo", line 1642, in read, File "mercurial\util.pyo", line 1614, in splitbig, File "mercurial\httppeer.pyo", line 38, in zgenerator, zlib.error: Error -3 while decompressing: invalid code lengths set] - pulling from http://server/hgweb.cgi/RepoName/ requesting all changeshttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/2438Built-in Web Server doesn't list the paths correctly2020-06-26T10:32:46ZBitbucket ImporterBuilt-in Web Server doesn't list the paths correctly*Created originally on Bitbucket by [jglathe (Jens Glathe)](https://bitbucket.org/%7B70bbf021-0d74-4436-9c39-199f538248ea%7D/)*
Hi,
just tried out the built-in web server (works), but the paths on the initial page are not listed corr...*Created originally on Bitbucket by [jglathe (Jens Glathe)](https://bitbucket.org/%7B70bbf021-0d74-4436-9c39-199f538248ea%7D/)*
Hi,
just tried out the built-in web server (works), but the paths on the initial page are not listed correctly (see screenshot).
with best regards
Jens
*Attachments:* [thgbug_130223](/uploads/44a56530deeac7e916af69b438e46473/thgbug_130223.jpg)[hgweb.fcgi](/uploads/d568ddcc251a8d4b44c4808c203d48ff/hgweb.fcgi)[hgweb.wsgi](/uploads/b135202e7d3229141a2eafd55b4eaa8b/hgweb.wsgi)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/1851Error while closing TortoiseHg settings2020-06-26T10:28:07ZBitbucket ImporterError while closing TortoiseHg settings*Created originally on Bitbucket by [amcameron (Andrew Cameron)](https://bitbucket.org/%7Be75d5110-9ee3-46cd-99a8-edffb6f94db8%7D/)*
On Windows 7, 64-bit.
Error is somewhat intermittent; I haven't figured out exactly what to do to re...*Created originally on Bitbucket by [amcameron (Andrew Cameron)](https://bitbucket.org/%7Be75d5110-9ee3-46cd-99a8-edffb6f94db8%7D/)*
On Windows 7, 64-bit.
Error is somewhat intermittent; I haven't figured out exactly what to do to reproduce it. However, these steps seem mostly reliable:
# Open TortoiseHg settings from File -> Settings from within TortoiseHg workbench. (Error does not occur if settings are loaded from, e.g., right-click context menu in Windows Explorer.)
# Ensure an extension is enabled (e.g. eol, churn).
# Click OK.
Sometimes, this does not cause any errors. Viewing a different group of settings (e.g., Workbench, Issue Tracking) before clicking OK may or may not prevent the error from occurring.
In any event, my configuration file seems correct the next time I open it, despite the error, so this would appear to be a minor issue.
*Attachments:* [bugreport2.txt](/uploads/dd9ee3d88de2272ce1f7e258b1748272/bugreport2.txt)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/1783thg keeps a ref to a folderrepo for too long ?2020-06-26T10:27:33ZBitbucket Importerthg keeps a ref to a folderrepo for too long ?*Created originally on Bitbucket by [johansamyn (Johan Samyn)](https://bitbucket.org/%7B9c10eb3e-883d-43e9-988f-cdc051634361%7D/)*
Hi,
Today I created a small test repo, added it to the reporegistry and opened it. When I was finished...*Created originally on Bitbucket by [johansamyn (Johan Samyn)](https://bitbucket.org/%7B9c10eb3e-883d-43e9-988f-cdc051634361%7D/)*
Hi,
Today I created a small test repo, added it to the reporegistry and opened it. When I was finished with it, I closzed the repotab, and even removed it from the reporegistry.
Then I opened Windows Explorer and tried to delete the repo folder. That however presented an eror message. See the attachment for a screendump. Happens both on Win 7 pro 32 and 64 bit.
Only when I closed the Workbench I was able to delete the folder. I guess there is some reference to that repo folder staying behind, even when it is removed from the reporegistry, causing some lock on the folder ?
Johan
*Attachments:* [step-1-opened](/uploads/4c6fbd00ac3708b176d71bb40e46c36e/step-1-opened.jpg)[step-2-closed](/uploads/8b34617af24f9d02d9629f663570d35e/step-2-closed.jpg)[step-3-quit](/uploads/591c26d21723e421a3d78957d3216ee9/step-3-quit.jpg)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/614Rename dialog's encoding is not correct2020-06-26T10:18:24ZBitbucket ImporterRename dialog's encoding is not correct*Created originally on Bitbucket by [willie (Chia-Huan Wu)](https://bitbucket.org/%7B67d4a46f-c35a-41f5-a89b-d0e8632885ef%7D/)*
OS: Windows 7 Traditional Chinese
TortoiseHG version: 2.0.3 x64
Please see the attached screenshot file,...*Created originally on Bitbucket by [willie (Chia-Huan Wu)](https://bitbucket.org/%7B67d4a46f-c35a-41f5-a89b-d0e8632885ef%7D/)*
OS: Windows 7 Traditional Chinese
TortoiseHG version: 2.0.3 x64
Please see the attached screenshot file, although the rename command works still...https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/504Strange Behavior in Chinese Commit Message2020-06-26T10:17:34ZBitbucket ImporterStrange Behavior in Chinese Commit Message*Created originally on Bitbucket by [sherlockmao (Sheng Mao)](https://bitbucket.org/%7B5e21f162-4fef-4044-bbe6-74c742bef33a%7D/)*
This problem started since Tortoisehg 2.0, and it was not solved in April's new version. Through the probl...*Created originally on Bitbucket by [sherlockmao (Sheng Mao)](https://bitbucket.org/%7B5e21f162-4fef-4044-bbe6-74c742bef33a%7D/)*
This problem started since Tortoisehg 2.0, and it was not solved in April's new version. Through the problem, no error/exception was thrown.
When I input commit message in Chinese, I meet this:
(C1..Cn means the nth Chinese character; input --> result in commit box)
1. input C1 --> C1;
2. input C2 --> C2C1.
However, it should be C1C2.
The problem may be caused by two bytes width of Chinese character, and I am not familiar with Qt, so I am so sorry I cannot solve effectively.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5557version `Qt_5.15' not found2020-06-27T18:14:23ZBitbucket Importerversion `Qt_5.15' not found*Created originally on Bitbucket by Anonymous*
I updated site-packages/PyQt5 (Fedora32, in user packages) and now thg fails to start, with
ImportError: /home/nbecker/.local/lib/python3.8/site-packages/PyQt5/Qt/lib/libQt5Core.so.5: ...*Created originally on Bitbucket by Anonymous*
I updated site-packages/PyQt5 (Fedora32, in user packages) and now thg fails to start, with
ImportError: /home/nbecker/.local/lib/python3.8/site-packages/PyQt5/Qt/lib/libQt5Core.so.5: version `Qt_5.15' not found (required by /home/nbecker/.local/lib/python3.8/site-packages/PyQt5/Qsci.abi3.so)
This is thg version
hg id
4a232bb1f8cc (stable) tip
Any hints?https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5556Synchronize options - TypeError: can only concatenate str (not "bytes") to str2020-09-10T13:57:07ZBitbucket ImporterSynchronize options - TypeError: can only concatenate str (not "bytes") to str*Created originally on Bitbucket by Anonymous*
How to reproduce:
1. Click the "Synchronize" button
1. Click the "Options" button
1. Input "default" in the "Branch:" input field
1. Click the "Save" button
Stack trace:
```
#!...*Created originally on Bitbucket by Anonymous*
How to reproduce:
1. Click the "Synchronize" button
1. Click the "Options" button
1. Input "default" in the "Branch:" input field
1. Click the "Save" button
Stack trace:
```
#!python
** Mercurial version (5.4.1). TortoiseHg version (5.4.1+6-13c9b451f6b0)
** Command:
** CWD: /home/user
** Encoding: UTF-8
** Extensions loaded: tortoisehg.util.configitems
** Python version: 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
** System: Linux localhost 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86_64
** Qt-5.15.0 PyQt-5.15.0 QScintilla-2.11.5
Traceback (most recent call last):
File "/home/user/repository/thg/tortoisehg/hgqt/qtlib.py", line 1339, in showEvent
self.get()
File "/home/user/repository/thg/tortoisehg/hgqt/qtlib.py", line 1351, in get
self._widget = func()
File "/home/user/repository/thg/tortoisehg/hgqt/repowidget.py", line 414, in createSyncWidget
sw = SyncWidget(self._repoagent, self)
File "/home/user/repository/thg/tortoisehg/hgqt/sync.py", line 292, in __init__
self.setEditUrl('')
File "/home/user/repository/thg/tortoisehg/hgqt/sync.py", line 455, in setEditUrl
self.refreshUrl()
File "/home/user/repository/thg/tortoisehg/hgqt/sync.py", line 440, in refreshUrl
opts.append('--'+opt+'='+value)
TypeError: can only concatenate str (not "bytes") to str
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5554cmdserver: execve: no such file or directory2020-07-03T23:58:08ZBitbucket Importercmdserver: execve: no such file or directory*Created originally on Bitbucket by [Artalus](https://bitbucket.org/%7B7dcb5736-e2e8-42c8-8fbc-faafa1b0c00d%7D/)*
Linux, Python 3.8, mercurial 5.4.1 from pip3, tortoise from `19338 (f7665823fa59) py3: fix bytes/str mismatch in hgdispatc...*Created originally on Bitbucket by [Artalus](https://bitbucket.org/%7B7dcb5736-e2e8-42c8-8fbc-faafa1b0c00d%7D/)*
Linux, Python 3.8, mercurial 5.4.1 from pip3, tortoise from `19338 (f7665823fa59) py3: fix bytes/str mismatch in hgdispatch` also with pip3. Whenever I try to filter the tree with Ctrl\+S, after inputting the revset and pressing enter I get this message:
```
cmdserver: execve: no such file or directory
cmdserver: process exited unexpectedly with code 0
```
https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5553Segmentation fault on any Update command2020-10-09T14:15:53ZBitbucket ImporterSegmentation fault on any Update command*Created originally on Bitbucket by [Artalus](https://bitbucket.org/%7B7dcb5736-e2e8-42c8-8fbc-faafa1b0c00d%7D/)*
Linux, Python 3.8, mercurial 5.4.1 from pip3, tortoise from `19338 (f7665823fa59) py3: fix bytes/str mismatch in hgdispatc...*Created originally on Bitbucket by [Artalus](https://bitbucket.org/%7B7dcb5736-e2e8-42c8-8fbc-faafa1b0c00d%7D/)*
Linux, Python 3.8, mercurial 5.4.1 from pip3, tortoise from `19338 (f7665823fa59) py3: fix bytes/str mismatch in hgdispatch` also with pip3. On any Update command THG crashes with Segmentation fault.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5551Problem with 'Visual Diff' option - unicode characters2022-10-08T03:34:18ZBitbucket ImporterProblem with 'Visual Diff' option - unicode characters*Created originally on Bitbucket by [zork (Łukasz Michalski)](https://bitbucket.org/%7Bb4ab5927-e57a-4134-a5ec-60c31f7ab78b%7D/)*
Trying to use ‘Visual diff' between two arbitrary revisions:
```
** Mercurial version (5.4). Tort...*Created originally on Bitbucket by [zork (Łukasz Michalski)](https://bitbucket.org/%7Bb4ab5927-e57a-4134-a5ec-60c31f7ab78b%7D/)*
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.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5550Dirstate Overflow Crash2020-07-04T20:12:11ZBitbucket ImporterDirstate Overflow Crash*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.9.1). TortoiseHg version (4.9.1)
** Command: --nofork workbench
** CWD: E:\workdir\blades\NB17
** Encoding: cp1252
** Extensions lo...*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.9.1). TortoiseHg version (4.9.1)
** Command: --nofork workbench
** CWD: E:\workdir\blades\NB17
** Encoding: cp1252
** Extensions loaded: tortoisehg.util.configitems, largefiles
** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehg\hgqt\manifestmodel.pyo", line 376, in fetchMore
File "tortoisehg\hgqt\manifestmodel.pyo", line 432, in _populateNodes
File "tortoisehg\hgqt\manifestmodel.pyo", line 605, in _populaterepo
File "tortoisehg\hgqt\manifestmodel.pyo", line 635, in _populatesubrepos
File "mercurial\util.pyo", line 1553, in __get__
File "mercurial\context.pyo", line 160, in substate
File "mercurial\subrepoutil.pyo", line 52, in state
File "mercurial\context.pyo", line 1280, in __contains__
File "mercurial\dirstate.pyo", line 253, in __getitem__
File "mercurial\dirstate.pyo", line 1259, in get
File "mercurial\util.pyo", line 1553, in __get__
File "mercurial\dirstate.pyo", line 1226, in _map
File "mercurial\dirstate.pyo", line 1465, in read
File "mercurial\util.pyo", line 1621, in wrapper
ValueError: overflow in dirstate
Traceback (most recent call last):
File "tortoisehg\hgqt\status.pyo", line 716, in run
File "mercurial\localrepo.pyo", line 158, in wrapper
File "hgext\largefiles\reposetup.pyo", line 153, in status
File "mercurial\localrepo.pyo", line 2677, in status
File "mercurial\context.pyo", line 350, in status
File "mercurial\context.pyo", line 1576, in _buildstatus
File "mercurial\context.pyo", line 1506, in _dirstatestatus
File "mercurial\context.pyo", line 1280, in __contains__
File "mercurial\dirstate.pyo", line 253, in __getitem__
File "mercurial\dirstate.pyo", line 1259, in get
File "mercurial\util.pyo", line 1553, in __get__
File "mercurial\dirstate.pyo", line 1226, in _map
File "mercurial\dirstate.pyo", line 1465, in read
File "mercurial\util.pyo", line 1621, in wrapper
ValueError: overflow in dirstate
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5549i18n/msgfmt.py array.array().tostring() fails on Python 3.92021-02-04T01:21:39ZBitbucket Importeri18n/msgfmt.py array.array().tostring() fails on Python 3.9*Created originally on Bitbucket by [kiilerix (Mads Kiilerich)](https://bitbucket.org/%7B557b6cb1-8bba-4f83-a28b-d729192b84ef%7D/)*
```
$ grep tostring `hg mani`
i18n/msgfmt.py: output += array.array("i", offsets).tostring()
$ py...*Created originally on Bitbucket by [kiilerix (Mads Kiilerich)](https://bitbucket.org/%7B557b6cb1-8bba-4f83-a28b-d729192b84ef%7D/)*
```
$ grep tostring `hg mani`
i18n/msgfmt.py: output += array.array("i", offsets).tostring()
$ python3.8 -c 'import array; print(array.array("i", [7]).tostring())'
b'\x07\x00\x00\x00'
$ python3.9 -c 'import array; print(array.array("i", [7]).tostring())'
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'array.array' object has no attribute 'tostring'
```
Seen on [https://kojipkgs.fedoraproject.org//work/tasks/5285/45385285/build.log](https://kojipkgs.fedoraproject.org//work/tasks/5285/45385285/build.log) - I don’t know yet if other problems come next.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5548New releases for Windows?2020-09-26T02:51:59ZBitbucket ImporterNew releases for Windows?*Created originally on Bitbucket by [oktonion (0kt1m)](https://bitbucket.org/%7Ba9cde182-0b9c-433b-92f8-dc6d72636257%7D/)*
[https://tortoisehg.bitbucket.io/](https://tortoisehg.bitbucket.io/) page is currently heavily outdated. There ar...*Created originally on Bitbucket by [oktonion (0kt1m)](https://bitbucket.org/%7Ba9cde182-0b9c-433b-92f8-dc6d72636257%7D/)*
[https://tortoisehg.bitbucket.io/](https://tortoisehg.bitbucket.io/) page is currently heavily outdated. There are no new release builds since 2019-07-22. Also download for Win32 of most “recent” build v.5.0.2 is not working.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5547running thg from source with mercurial 5.4 fails2020-06-27T19:23:44ZBitbucket Importerrunning thg from source with mercurial 5.4 fails*Created originally on Bitbucket by Anonymous*
```
#!cmd
#!python
** Mercurial version (5.4rc0+2-e8e08cbc03bf+20200530). TortoiseHg version (5.1+220-cd4249c0b80a)
** Command: log
** CWD: /home/alexrayne/thg.hg
...*Created originally on Bitbucket by Anonymous*
```
#!cmd
#!python
** Mercurial version (5.4rc0+2-e8e08cbc03bf+20200530). TortoiseHg version (5.1+220-cd4249c0b80a)
** Command: log
** CWD: /home/alexrayne/thg.hg
** Encoding: UTF-8
** Extensions loaded:
** Python version: 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 9.2.1 20191008]
** System: Linux alexrayne-VB 5.3.0-53-generic #47-Ubuntu SMP Thu May 7 12:18:16 UTC 2020 x86_64
** Qt-5.12.4 PyQt-5.12.3 QScintilla-(unknown)
This version of TortoiseHg requires Mercurial version 5.1.n to 5.2.n, but found 5.4rc0
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5546unsupported changeid 'XXX' of type <class 'bytes'>2020-07-05T14:23:23ZBitbucket Importerunsupported changeid 'XXX' of type <class 'bytes'>*Created originally on Bitbucket by Anonymous*
I am seeing the following error when I click the shelve "Z" icon. This is on Linux.
```
#!python
#!python
** Mercurial version (5.4). TortoiseHg version (5.3.2+8-24c7f576e2...*Created originally on Bitbucket by Anonymous*
I am seeing the following error when I click the shelve "Z" icon. This is on Linux.
```
#!python
#!python
** Mercurial version (5.4). TortoiseHg version (5.3.2+8-24c7f576e2c7)
** Command:
** CWD: /home/vh638202
** Encoding: UTF-8
** Extensions loaded: automv, beautifygraph, graphlog, histedit, strip, mq, patchbomb, rebase, relink, tortoisehg.util.configitems
** Python version: 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
** System: Linux vh638202-Precision-5530 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64
** Qt-5.12.8 PyQt-5.14.1 QScintilla-2.11.2
Traceback (most recent call last):
File "/home/vh638202/thg/tortoisehg/hgqt/fileview.py", line 295, in _launchShelve
dlg = shelve.ShelveDialog(self._repoagent, self)
File "/home/vh638202/thg/tortoisehg/hgqt/shelve.py", line 218, in __init__
self.refreshCombos()
File "/home/vh638202/thg/tortoisehg/hgqt/shelve.py", line 471, in refreshCombos
self.comboBChanged(idxb)
File "/home/vh638202/thg/tortoisehg/hgqt/shelve.py", line 502, in comboBChanged
self.browseb.setContext(self.repo[rev])
File "/home/vh638202/thg/tortoisehg/hgqt/thgrepo.py", line 812, in __getitem__
changectx = super(thgrepository, self).__getitem__(changeid)
File "/home/vh638202/.local/lib/python3.8/site-packages/mercurial/localrepo.py", line 1648, in __getitem__
raise error.ProgrammingError(
mercurial.error.ProgrammingError: unsupported changeid '/home/vh638202/APM/apm.3/ng/.hg/shelves/2020-05-04_14-17-09_parent_rev_13290' of type <class 'bytes'>
Traceback (most recent call last):
File "/home/vh638202/thg/tortoisehg/hgqt/chunks.py", line 479, in displayFile
self.diffbrowse.displayFile(file, status)
File "/home/vh638202/thg/tortoisehg/hgqt/chunks.py", line 757, in displayFile
fd = filedata.createFileData(self._ctx, None, filename, status)
File "/home/vh638202/thg/tortoisehg/hgqt/filedata.py", line 797, in createFileData
return FileData(ctx, ctx2, wfile, status, rpath, mstatus)
File "/home/vh638202/thg/tortoisehg/hgqt/filedata.py", line 216, in __init__
super(FileData, self).__init__(ctx, pctx, path, status, rpath)
File "/home/vh638202/thg/tortoisehg/hgqt/filedata.py", line 85, in __init__
self._textencoding = fileencoding.contentencoding(ctx._repo.ui)
AttributeError: 'NoneType' object has no attribute '_repo'
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5545'ignore' item gives traceback2020-12-11T17:24:23ZBitbucket Importer'ignore' item gives traceback*Created originally on Bitbucket by [nbecker (Neal Becker)](https://bitbucket.org/%7Befc7b475-104c-46e8-80c8-88e5e74f076c%7D/)*
```
#!python
** Mercurial version (5.3.2). TortoiseHg version (5.3.2)
** Command:
** CWD: /home/nbecke...*Created originally on Bitbucket by [nbecker (Neal Becker)](https://bitbucket.org/%7Befc7b475-104c-46e8-80c8-88e5e74f076c%7D/)*
```
#!python
** Mercurial version (5.3.2). TortoiseHg version (5.3.2)
** Command:
** CWD: /home/nbecker/MUD
** Encoding: UTF-8
** Extensions loaded: rebase, convert, hggit, evolve, transplant, largefiles, tortoisehg.util.configitems
** Python version: 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)]
** System: Linux nbecker2 5.6.12-300.fc32.x86_64 #1 SMP Mon May 11 16:47:13 UTC 2020 x86_64
** Qt-5.13.2 PyQt-5.13.2 QScintilla-2.11.2
Traceback (most recent call last):
File "/home/nbecker/.local/lib/python3.8/site-packages/tortoisehg/hgqt/hgignore.py", line 321, in refresh
self.le.setText(u)
TypeError: setText(self, str): argument 1 has unexpected type 'bytes'
```
https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5542Error when creating new repo after upgrade from Fedora31 + F322020-09-10T14:00:15ZBitbucket ImporterError when creating new repo after upgrade from Fedora31 + F32*Created originally on Bitbucket by [bengbers (Ben Engbers)](https://bitbucket.org/%7B35522c59-b135-47e9-bd5e-8e925dddd57a%7D/)*
After upgrading, I tried to create a new repo in Tortoise. That resulted in this error:
![](https://bitb...*Created originally on Bitbucket by [bengbers (Ben Engbers)](https://bitbucket.org/%7B35522c59-b135-47e9-bd5e-8e925dddd57a%7D/)*
After upgrading, I tried to create a new repo in Tortoise. That resulted in this error:
![](https://bitbucket.org/repo/48R4X/images/1907548144-Schermafdruk%20van%202020-05-11%2010-07-24.png)
I first tried to reinstall tortoisehg:
```
[root@HOME ~]# dnf reinstall dulwich-core python-dulwich-doc python3-dulwich
Laatste metadata-expiratie-check: 0:03:47 geleden op ma 11 mei 2020 00:52:18 CEST.
Geïnstalleerd pakket dulwich-core-0.19.12-1.fc31.x86_64 (van fedora) is niet beschikbaar.
```
I reported this error to FedoraForum. They answered that they could not reproduce the error. They could create a new repo. \(hg init testdir\).
In a shell, I did the same:
```
[bengbers@HOME BaseXCpp]$ hg init src2
*** failed to import extension hggit from /usr/local/lib/python3.8/site-packages/hggit: No module named dulwich.errors
```
But I saw that the new repo had been created. When opening this repo in Tortoise, I get this error:
```
#!python
** Mercurial version (5.2). TortoiseHg version (5.3.2)
** Command: --nofork
** CWD: /home/bengbers
** Encoding: UTF-8
** Extensions loaded: tortoisehg.util.configitems
** Python version: 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)]
** System: Linux HOME.BEL003 5.6.6-300.fc32.x86_64 #1 SMP Tue Apr 21 13:44:19 UTC 2020 x86_64
** Qt-5.13.2 PyQt-5.13.2 QScintilla-2.11.2
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repowidget.py", line 261, in _initView
self._updateRepoViewForModel()
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repowidget.py", line 855, in _updateRepoViewForModel
index = model.defaultIndex()
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repomodel.py", line 683, in defaultIndex
index = self.indexFromRev(rev)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repomodel.py", line 703, in indexFromRev
row = self.graph.index(rev)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/graph.py", line 992, in index
if isinstance(rev, int) and len(self) > 0 and rev < self.nodes[-1].rev:
TypeError: '<' not supported between instances of 'int' and 'NoneType'
```
After closing and reopening tortoise, I can use the new repo without seeing this error again.
Is dulwich-core still needed? Or should I remove the version that came with Fedora 31?https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5541py3 bytes + str problem2020-06-28T06:43:15ZBitbucket Importerpy3 bytes + str problem*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (5.3.1). TortoiseHg version (5.4rc0+11-6de420f27d41)
** Command:
** CWD: /home/user/test
** Encoding: UTF-8
** Extensions loaded: con...*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (5.3.1). TortoiseHg version (5.4rc0+11-6de420f27d41)
** Command:
** CWD: /home/user/test
** Encoding: UTF-8
** Extensions loaded: convert, strip, mq, rebase, transplant, show, tortoisehg.util.configitems
** Python version: 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
** System: Linux 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64
** Qt-5.12.8 PyQt-5.14.1 QScintilla-2.11.2
Traceback (most recent call last):
File "/home/niki/opensrc/tortoisehg/tortoisehg/hgqt/revdetails.py", line 418, in _onFileSelected
self.fileview.display(model.fileData(index))
File "/home/niki/opensrc/tortoisehg/tortoisehg/hgqt/fileview.py", line 498, in display
fd.load(self.isChangeSelectionEnabled())
File "/home/niki/opensrc/tortoisehg/tortoisehg/hgqt/filedata.py", line 535, in load
self.diff = ''.join([ctx.thgmqpatchdata(f) for f in ctx.files()
File "/home/niki/opensrc/tortoisehg/tortoisehg/hgqt/filedata.py", line 536, in <listcomp>
if f.startswith(self._wfile + '/')])
TypeError: can't concat str to bytes
```