logtoprocess: do not leak the ui object in uisetup
authorJun Wu <quark@fb.com>
Thu, 30 Jun 2016 15:26:11 +0100
changeset 29463 4cf0542dcbe7
parent 29462 71ed5a3ef8a9
child 29464 87c184c9bfef
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.
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