Skip to content
GitLab
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 838
    • Issues 838
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and 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
  • mercurialmercurial
  • TortoiseHgTortoiseHg
  • thgthg
  • Issues
  • #5542
Closed
Open
Issue created May 12, 2020 by Bitbucket Importer@bitbucket_importerOwner

Error when creating new repo after upgrade from Fedora31 + F32

Created originally on Bitbucket by bengbers (Ben Engbers)

After upgrading, I tried to create a new repo in Tortoise. That resulted in this error:

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?

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