[tui] set attribute '_walker' to RepoViewer (closes #98686)

Press ':r[enter]', get a stack trace.

:introduced by: `df0bd07d63bccc087f563cf6e29a4918caa554b5`_

authorTakumi IINO <trot.thunder@gmail.com>
changeset33d2b342c3a2
branchdefault
phasepublic
hiddenno
parent revision#ebdaabf52b73 merge stable in default
child revision#a1a6e6e07459 [tui,qt] Allow overriding ``maxfilesize`` config value in the UIs (closes #20597)
files modified by this revision
hgviewlib/curses/hgrepoviewer.py
# HG changeset patch
# User Takumi IINO <trot.thunder@gmail.com>
# Date 1340030086 -7200
# Mon Jun 18 16:34:46 2012 +0200
# Node ID 33d2b342c3a2752f4fe1671e7764b9dea45b09f3
# Parent ebdaabf52b73e635d2c9348005e4529c2218d041
[tui] set attribute '_walker' to RepoViewer (closes #98686)

Press ':r[enter]', get a stack trace.

:introduced by: `df0bd07d63bccc087f563cf6e29a4918caa554b5`_

diff --git a/hgviewlib/curses/hgrepoviewer.py b/hgviewlib/curses/hgrepoviewer.py
@@ -288,13 +288,13 @@
1          self.repo = repo
2          self.cfg = HgConfig(repo.ui)
3          self._show_context = 0 # O:hide, 1:half, 2:maximized
4          self.refreshing = False # flag to now if the repo is refreshing
5 
6 -        walker = HgRepoListWalker(repo)
7 -        self.graphlog = GraphlogViewer(walker=walker)
8 -        self.context = ContextViewer(walker=walker)
9 +        self._walker = HgRepoListWalker(repo)
10 +        self.graphlog = GraphlogViewer(walker=self._walker)
11 +        self.context = ContextViewer(walker=self._walker)
12 
13          widget_list = [('weight', 1 - self.CONTEXT_SIZE, self.graphlog),]
14 
15          super(RepoViewer, self).__init__(widget_list=widget_list, focus_item=0,
16                                           *args, **kwargs)