diff --git a/powerline/lib/vcs/mercurial.py b/powerline/lib/vcs/mercurial.py index 09b6e0b1..2006c2a4 100644 --- a/powerline/lib/vcs/mercurial.py +++ b/powerline/lib/vcs/mercurial.py @@ -86,3 +86,8 @@ class Repository(object): get_func=branch_name_from_config_file, create_watcher=self.create_watcher, ) + + @staticmethod + def ignore_event(path, name): + # Ignore temporary files created during mercurial commands + return path.endswith('.hg') and name.startswith(b'tmp')