Commit 1b650b5c authored by Manuel Jacob's avatar Manuel Jacob
Browse files

revdetails: ignore FilteredRepoLookupError in RevDetailsWidget.reload()

Changeset 43aaee95a027 added the functionality that the revdetails widget is
reloaded when the repository changes.  This caused a FilteredRepoLookupError
when hiding hidden changesets while a hidden changeset is selected.

--HG--
branch : stable
parent fb2d719ddc70
......@@ -11,6 +11,7 @@ from __future__ import absolute_import
import os
from mercurial import (
error,
scmutil,
)
......@@ -370,7 +371,14 @@ class RevDetailsWidget(QWidget, qtlib.TaskWidget):
rev = scmutil.revsymbol(self.repo, rev).rev()
elif rev not in self.repo.thgmqunappliedpatches:
rev = 'tip'
self.onRevisionSelected(rev)
try:
self.onRevisionSelected(rev)
except error.FilteredRepoLookupError:
# Perhaps, the widget is reloaded because of filtering mode change
# while a hidden changeset was selected. In this cases, the
# selection of a different changeset (triggering the update of
# revdetails) will happen within short time.
pass
@pyqtSlot(QUrl)
def _forwardAnchorClicked(self, url):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment