# HG changeset patch # User Jun Wu # Date 1467296771 -3600 # Node ID 4cf0542dcbe747e9acb35e771e033e89eb681bc7 # Parent 71ed5a3ef8a9ba9499fe7e30b66cddb5f188ca6e logtoprocess: do not leak the ui object in uisetup logtoprocess.log should use "self" passed in function arguments instead of the "ui" object from outside the function. diff -r 71ed5a3ef8a9 -r 4cf0542dcbe7 hgext/logtoprocess.py --- a/hgext/logtoprocess.py Wed Jun 29 23:53:20 2016 +0100 +++ b/hgext/logtoprocess.py Thu Jun 30 15:26:11 2016 +0100 @@ -92,7 +92,7 @@ Arguments are passed on as environment variables. """ - script = ui.config('logtoprocess', event) + script = self.config('logtoprocess', event) if script: if msg: # try to format the log message given the remaining