hgview #23315 handle changes in the repo induced by hg rebase [validation pending]

If I have a repository displayed in hgview and I use hg rebase from a console, I get the following error in the stderr of hgview:

 Traceback (most recent call last):
 File "/home/alf/dev/public/hgview/hgviewlib/qt4/hgrepoviewer.py", line 91, in timerEvent
 File "/home/alf/dev/public/hgview/hgviewlib/qt4/hgrepoviewer.py", line 401, in reload
 File "/home/alf/dev/public/hgview/hgviewlib/qt4/hgrepoviewer.py", line 94, in setupBranchCombo
   allbranches = sorted(self.repo.branchtags().items())
 File "/usr/lib/pymodules/python2.5/mercurial/localrepo.py", line 348, in branchtags
   if 'close' not in self.changelog.read(h)[5]:
 File "/usr/lib/pymodules/python2.5/mercurial/changelog.py", line 173, in read
   text = self.revision(node)
 File "/usr/lib/pymodules/python2.5/mercurial/revlog.py", line 1003, in revision
   % (self.indexfile, rev))
mercurial.error.RevlogError: integrity check failed on 00changelog.i:1585

hgview should handle this and trigger a reload of the repository automatically (needs to be done by hand currently).

appeared in<not specified>
done in1.6.0
load left0.000
closed by<not specified>