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

login
register
mail settings
Submitter Yuya Nishihara
Date Nov. 18, 2018, 2:19 p.m.
Message ID <17378f6a7ca77ec04637.1542550758@mimosa>
Download mbox | patch
Permalink /patch/36636/
State Superseded
Headers show

Comments

Yuya Nishihara - Nov. 18, 2018, 2:19 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.

Patch

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