[PATCH 2 of 5] ui: unify argument name of ui.log()

Yuya Nishihara yuya at tcha.org
Sun Nov 18 14:19:18 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1541926763 -32400
#      Sun Nov 11 17:59:23 2018 +0900
# Node ID 17378f6a7ca77ec046370ebac2c88218843cc2d8
# Parent  c3c5fd8842846b7c82b5473c36773d6961acc8c2
ui: unify argument name of ui.log()

It's called an "event" in both blackbox and logtoprocess.

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -1709,10 +1709,10 @@ class ui(object):
         '''exists only so low-level modules won't need to import scmutil'''
         return scmutil.progress(self, topic, unit, total)
 
-    def log(self, service, *msg, **opts):
+    def log(self, event, *msg, **opts):
         '''hook for logging facility extensions
 
-        service should be a readily-identifiable subsystem, which will
+        event should be a readily-identifiable subsystem, which will
         allow filtering.
 
         *msg should be a newline-terminated format string to log, and



More information about the Mercurial-devel mailing list