Description
After a recent OS upgrade, I've been having issues with my bash status line rendering very slowly while navigating around mercurial repositories.
I don't have a complete understanding of why this was not an issue before the upgrade. However, I have traced part of the problem to a temporary file that mercurial is creating/deleting in the .hg folder on every status operation. This invalidates powerline's VCS tree status cache and causes it to re-run the full status on every render.
I suspect there may be other contributing factors, but I'll submit a patch for ignoring the temporary files. Status is still noticeably slow when any file changes, but this at least makes the segment usable again for me.
Environment:
Latest git version of powerline (8af6302)
Linux / Ubuntu 22.04
Python 3.10.4
Mercurial 6.1.1
hglib 2.6.2
inotify watcher