changeset 29463:4cf0542dcbe7

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.
author Jun Wu <quark@fb.com>
date Thu, 30 Jun 2016 15:26:11 +0100
parents 71ed5a3ef8a9
children 87c184c9bfef
files hgext/logtoprocess.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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