FilteredIndexError while rebasing shown revision
Steps to reproduce:
- In thg, click on a revision to show its details (full message, diff, etc)
- Separately, in a terminal, rebase that revision
Expected result:
- The view automatically changes to the rebased revision, the successor of the initial one.
Actual result:
- The view automatically changes to the rebased revision, and a "TortoiseHg Bug Report" window appears that shows the text below with a Python exception
mercurial.error.FilteredIndexError: 55081
. This 55081 is the initial revision that was rebased. I assume that rebasing marks it as obsolete and therefore as to filter out of "normal" operations.
#!python
** Mercurial version (5.8.1). TortoiseHg version (5.8.1)
** Command:
** CWD: /home/simon/projects/hg
** Encoding: UTF-8
** Extensions loaded: absorb, convert, evolve 10.3.3, histedit, patchbomb, phabricator, purge, rebase, share, strip, topic 0.22.3, tortoisehg.util.configitems
** Python version: 3.9.6 (default, Jun 30 2021, 10:22:16) [GCC 11.1.0]
** System: Linux kangae 5.13.9-arch1-1 #1 SMP PREEMPT Sun, 08 Aug 2021 11:25:35 +0000 x86_64
** Qt-5.15.2 PyQt-5.15.4 QScintilla-2.13.0
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/mercurial/localrepo.py", line 1837, in __getitem__
node = self.changelog.node(changeid)
File "/usr/lib/python3.9/site-packages/mercurial/repoview.py", line 343, in node
raise error.FilteredIndexError(rev)
mercurial.error.FilteredIndexError: 55081
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/repowidget.py", line 1053, in repositoryChanged
self._updateNamedActions()
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/repowidget.py", line 1540, in _updateNamedActions
selattrs = self._selectionAttributes()
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/repowidget.py", line 1220, in _selectionAttributes
ctxs = [self.repo[rev] for rev in revisions]
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/repowidget.py", line 1220, in <listcomp>
ctxs = [self.repo[rev] for rev in revisions]
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/thgrepo.py", line 821, in __getitem__
changectx = super(thgrepository, self).__getitem__(changeid)
File "/usr/lib/python3.9/site-packages/mercurial/localrepo.py", line 1877, in __getitem__
raise error.FilteredRepoLookupError(
mercurial.error.FilteredRepoLookupError: b"filtered revision '55081'"