[TUI|inotify] prevent over refreshing with mercurial 2.1 (closes #89336)

authorAlain Leufroy <alain.leufroy@logilab.fr>
changeset487237792c36
branchstable
phasepublic
hiddenno
parent revision#451bb3d322d1 [mq] fix ``ev/null`` file entry appearing with removed files on unapplied patches (closes #89335)
child revision#c27a1eb98cab [lib] do not swallow exception with ``--traceback`` (closes #89337)
files modified by this revision
hgviewlib/curses/application.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1330112529 -3600
# Fri Feb 24 20:42:09 2012 +0100
# Branch stable
# Node ID 487237792c36a166f0f94617b5cc575e2d66ccb3
# Parent 451bb3d322d174cde798bdbaeb5223e96dcadcd8
[TUI|inotify] prevent over refreshing with mercurial 2.1 (closes #89336)

diff --git a/hgviewlib/curses/application.py b/hgviewlib/curses/application.py
@@ -113,11 +113,11 @@
1              # get all events on every files.
2              # Ignore files that shall be ignored be mercurial
3              # Also ignore hg-checkexec* files that are created by mercurial
4              # to check available file status.
5              for fname in self.read_events():
6 -                if fname.startswith('hg-checkexec'):
7 +                if fname.startswith(('hg-checkexec', 'hg-checklink')):
8                      break
9                  if self.repo.dirstate._dirignore(fname):
10                      break
11              else:
12              # use the urwid mainloop to schedule the screen refreshing in 0.2s