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
  • #5753
Closed
Open
Issue created Nov 04, 2021 by muxator@muxator

mercurial.error.LookupError: no node after a rebase in the GUI. Thg does not start now.

Thg crashed on my face after doing a rebase in the GUI (I did not save the traceback).

Every time I try to start thg in that repo it now crashes with this error:

    #!python
    ** Mercurial version (5.9.1+hg18.7970895a21cblocal20211102).  TortoiseHg version (5.9.3+1-8a754513bedd)
    ** Command: 
    ** CWD: /home/muxator/code/<project>
    ** Encoding: UTF-8
    ** Extensions loaded: amend, churn, extdiff, hggit 0.10.2 (dulwich 0.20.26), histedit, mq, patchbomb, rebase, show, strip, tortoisehg.util.configitems, uncommit
    ** Python version: 3.9.7 (default, Sep 10 2021, 14:59:43) [GCC 11.2.0]
    ** System: Linux Aspire 5.13.0-20-generic #20-Ubuntu SMP Fri Oct 15 14:21:35 UTC 2021 x86_64
    ** Qt-5.15.2 PyQt-5.15.4 QScintilla-2.11.6
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/mercurial/revlog.py", line 809, in rev
        return self.index.rev(node)
    mercurial.error.RevlogError: RevlogError
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/run.py", line 139, in dispatch
        return _runcatch(u, args)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/run.py", line 343, in _runcatch
        return runcommand(ui, args)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/run.py", line 437, in runcommand
        return _runcommand(lui, options, cmd, d)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/run.py", line 489, in _runcommand
        return checkargs()
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/run.py", line 442, in checkargs
        return cmdfunc()
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/run.py", line 435, in <lambda>
        d = lambda: qtrun(checkedfunc, ui, *args,
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/qtapp.py", line 460, in __call__
        dlg, reporoot = self._createdialog(dlgfunc, args, opts)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/qtapp.py", line 524, in _createdialog
        return dlgfunc(self._ui, *args, **opts), reporoot
      File "/usr/lib/python3/dist-packages/mercurial/util.py", line 1886, in check
        return func(*args, **kwargs)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/run.py", line 1059, in log
        w = _workbench(ui, *pats, **opts)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/run.py", line 535, in _workbench
        w.showRepo(root)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/workbench.py", line 744, in showRepo
        self.openRepo(root, True)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/workbench.py", line 738, in openRepo
        if not self.repoTabsWidget.openRepo(root, bundle):
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/repotab.py", line 127, in openRepo
        rw = self._createRepoWidget(root, bundle)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/repotab.py", line 406, in _createRepoWidget
        rw = repowidget.RepoWidget(self._actionregistry, repoagent, self,
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/repowidget.py", line 227, in __init__
        self.setupUi()
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/repowidget.py", line 259, in setupUi
        self.filterbar = RepoFilterBar(self._repoagent, self)
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/repofilter.py", line 264, in __init__
        self.refresh()
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/repofilter.py", line 554, in refresh
        self._updateBranchFilter()
      File "/home/muxator/mercurial/thg/tortoisehg/hgqt/repofilter.py", line 491, in _updateBranchFilter
        branches = hglib.namedbranches(self._repo)
      File "/home/muxator/mercurial/thg/tortoisehg/util/hglib.py", line 237, in namedbranches
        branchmap = repo.branchmap()
      File "/usr/lib/python3/dist-packages/mercurial/localrepo.py", line 2133, in branchmap
        return self._branchcaches[self]
      File "/usr/lib/python3/dist-packages/mercurial/branchmap.py", line 72, in __getitem__
        self.updatecache(repo)
      File "/usr/lib/python3/dist-packages/mercurial/branchmap.py", line 105, in updatecache
        bcache.update(repo, revs)
      File "/usr/lib/python3/dist-packages/mercurial/branchmap.py", line 502, in update
        bheadset = {cl.rev(node) for node in bheads}
      File "/usr/lib/python3/dist-packages/mercurial/branchmap.py", line 502, in <setcomp>
        bheadset = {cl.rev(node) for node in bheads}
      File "/usr/lib/python3/dist-packages/mercurial/revlog.py", line 819, in rev
        raise error.LookupError(node, self.display_id, _(b'no node'))
    mercurial.error.LookupError: 00changelog@1c85a63a22e59eef8fb6e2abe3e93866d51b36dc: no node

hg verify does not show anything surprising:

$ hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
checked 345 changesets with 1077 changes to 260 files
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking