thg issueshttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues2021-09-08T15:22:09Zhttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5743Cannot use local hg install2021-09-08T15:22:09ZRaphaël GomèsCannot use local hg installFor some reason, `pip install --global-option="--rust"` does not work, and I haven't found a way yet of installing mercurial with Rust with pip. So I thought I'd use `HGPATH=/directory/where/hg/source/is ./thg`, but I'm getting:
```
Tra...For some reason, `pip install --global-option="--rust"` does not work, and I haven't found a way yet of installing mercurial with Rust with pip. So I thought I'd use `HGPATH=/directory/where/hg/source/is ./thg`, but I'm getting:
```
Traceback (most recent call last):
File "./thg", line 52, in <module>
from setup import build_ui
File "/home/alphare/workspace/octobus/tortoisehg/thg/setup.py", line 30, in <module>
from i18n.msgfmt import Msgfmt
File "/home/alphare/workspace/octobus/tortoisehg/thg/i18n/msgfmt.py", line 39, in <module>
from mercurial import (
ModuleNotFoundError: No module named 'mercurial'
```
Because `build_ui` somehow calls mercurial before it can be set. And even if I put the `sys.path` manipulation before the `build_ui` business, I get another error about `mercurial/__version__.py` doesn't existing, which makes me think this whole `HGPATH=` thing does not work anymore.
The reason why I need a Rust version is because my mercurial-devel checkout uses the Rust nodemap, which adds a requirement.https://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/5559Column widths go crazy2023-07-31T22:25:22ZBitbucket ImporterColumn widths go crazy*Created originally on Bitbucket by Anonymous*
The log column widths (graph, rev, description etc.) frequently change to very wide values. (Scrolling around to drag them all back is unfortunately rather annoying and time consuming.)
...*Created originally on Bitbucket by Anonymous*
The log column widths (graph, rev, description etc.) frequently change to very wide values. (Scrolling around to drag them all back is unfortunately rather annoying and time consuming.)
This seems to happen in various situation, e.g. when an external monitor is connected / disconnected / the screen resolution changes / the Windows zoom setting changes / ... (These are not rare events on notebooks.)
(Also the order of columns sometimes changes when this happens.)
Is it a bug? A feature I don't understand? Is there a way to save and restore column widths or disable auto-resizing?
(I [searched issues related to column width](https://bitbucket.org/tortoisehg/thg/issues?q=column+width), but none seem to describe this problem.)
Thanks.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5558Crash on shelve/pull2020-06-24T12:35:58ZBitbucket ImporterCrash on shelve/pull*Created originally on Bitbucket by Anonymous*
#!python
** Mercurial version (4.3.2+2-fa4b3b666ca7). TortoiseHg version (4.3.1+19-a47e446add6e)
** Command: --nofork shelve
** CWD: N:\code\pvr
** Encoding: cp1252
...*Created originally on Bitbucket by Anonymous*
#!python
** Mercurial version (4.3.2+2-fa4b3b666ca7). TortoiseHg version (4.3.1+19-a47e446add6e)
** Command: --nofork shelve
** CWD: N:\code\pvr
** Encoding: cp1252
** Extensions loaded: rebase, transplant, purge, strip, histedit, share, record, mercurial_keyring, hgunity, eol, convert, fetch, largefiles, mq, extdiff
** 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=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-4.8.5 PyQt-4.10.3 QScintilla-2.7.2
Traceback (most recent call last):
File "tortoisehg\hgqt\shelve.pyo", line 231, in moveFilesRight
File "tortoisehg\hgqt\chunks.pyo", line 396, in removeFile
File "mercurial\commands.pyo", line 4480, in revert
File "mercurial\extensions.pyo", line 322, in closure
File "hgext\largefiles\overrides.pyo", line 782, in overriderevert
File "mercurial\cmdutil.pyo", line 3501, in revert
File "mercurial\cmdutil.pyo", line 3631, in _performrevert
File "mercurial\cmdutil.pyo", line 3531, in checkout
File "mercurial\context.pyo", line 94, in __getitem__
File "mercurial\context.pyo", line 598, in filectx
File "mercurial\context.pyo", line 279, in filenode
File "mercurial\context.pyo", line 264, in _fileinfo
ManifestLookupError: Runtime/Export/Shaders/ComputeShader.bindings.cs@000000000000: not found in manifest
pulling a branch with -u to update while shelving some files. Expected behavior would be a warning that uncommitted changes were found.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/5555TortoiseHG commits unchecked chunks between the merge wizard finishing and co...2020-06-21T11:22:07ZBitbucket ImporterTortoiseHG commits unchecked chunks between the merge wizard finishing and committing by hand*Created originally on Bitbucket by [gmb1226 (Greg Besack)](https://bitbucket.org/%7Ba2ea14bd-efe2-4789-8d6a-68324875819f%7D/)*
Today while merging, I found a line of code I wanted to back out of the merge commit that wasn't available t...*Created originally on Bitbucket by [gmb1226 (Greg Besack)](https://bitbucket.org/%7Ba2ea14bd-efe2-4789-8d6a-68324875819f%7D/)*
Today while merging, I found a line of code I wanted to back out of the merge commit that wasn't available to change as part of the conflict resolution window. It was a bit of debug code left in. So after the merge wizard finished, I did a “Commit Later” so I could change it before the merge.
I clicked on the offending source file, and unchecked the code chunk. Then I clicked commit to finalize the merge.
When I viewed the resulting merge, this chunk was still included in the merge, even though I unchecked it.
I expected the chunk to be excluded from the merge commit and left in the stating area.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/5552show revision history2020-07-04T20:37:46ZBitbucket Importershow revision history*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.9.1). TortoiseHg version (4.9.1)
** Command: --nofork log --listfile C:\Users\path\Local\Temp\THG9FFA.tmp
** CWD: C:\path\
** Encoding:...*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.9.1). TortoiseHg version (4.9.1)
** Command: --nofork log --listfile C:\Users\path\Local\Temp\THG9FFA.tmp
** CWD: C:\path\
** Encoding: cp1252
** Extensions loaded: strip, tortoisehg.util.configitems
** 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=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehg\hgqt\repomodel.pyo", line 404, in fetchMore
File "tortoisehg\hgqt\graph.pyo", line 955, in build_nodes
File "tortoisehg\hgqt\graph.pyo", line 629, in _iter_graphnodes
ValueError: 3351 is not in list
```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/5544Bullshit error message "too many open files" on commit. Goes away after resta...2020-06-21T11:21:56ZBitbucket ImporterBullshit error message "too many open files" on commit. Goes away after restarting thg*Created originally on Bitbucket by [teo8976 (Teo Tei)](https://bitbucket.org/%7B4d381d15-4c61-4a29-9de3-d1b5a89dbb2a%7D/)*
I use THG all the time, often keeping a handful of repos open in different tabs, and I commit, push and pull on ...*Created originally on Bitbucket by [teo8976 (Teo Tei)](https://bitbucket.org/%7B4d381d15-4c61-4a29-9de3-d1b5a89dbb2a%7D/)*
I use THG all the time, often keeping a handful of repos open in different tabs, and I commit, push and pull on them alternatively as I work on several projects at the same time.
Today, when attempting to commit on one of the repos I had open, I got this error:
![](https://bitbucket.org/repo/48R4X/images/134744508-Screenshot%20from%202020-05-14%2020-42-38.png)
and no matter how many times I retried, I would keep getting the same error.
I didn’t try to do commits on other repos, but I did succesfully do a push on another repo open in a separate tab.
After restarting THG and retrying, I could do the commit succesfully.
Whatever the error is, it obviously shouldn’t happen in the first place \(no matter what “too many open files” means, you shouldn’t open too many files\), but also, the error message should give more information. What kind of files? Open by whom? What am I supposed to do about it?
*Attachments:* [Screenshot_from_2020-05-14_20-42-38](/uploads/ca7df1f5a2b0f2f5113abf7e60dc9c12/Screenshot_from_2020-05-14_20-42-38.png)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5543Directory named "hg" on search path is used for cmdserver execution resulting...2020-06-21T11:21:54ZBitbucket ImporterDirectory named "hg" on search path is used for cmdserver execution resulting in permission denied error*Created originally on Bitbucket by [Peter Duda](https://bitbucket.org/%7B3859a3b5-c697-42de-8062-5468b720fcbf%7D/)*
On Linux, when there is a directory named “hg” on the search path before real “hg” script, it is found and used as path...*Created originally on Bitbucket by [Peter Duda](https://bitbucket.org/%7B3859a3b5-c697-42de-8062-5468b720fcbf%7D/)*
On Linux, when there is a directory named “hg” on the search path before real “hg” script, it is found and used as path for mercurial cmdserver execution, resulting in following error reported when there is attempt to use cmdserver:
cmdserver: execve: Permission denied
cmdserver: process exited unexpectedly with code 0
Renaming that directory resolves an issue, but directory should not be used when searching for mercurial exec path.
os.path.isfile\(ppath\) should be added to os.access\(ppath, os.X\_OK\) test in find\_in\_path method in Not Windows section in tortoisehg/util/paths.pyhttps://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?