hgext/logtoprocess.py
changeset 40401 6bd477ee7294
parent 39926 c4a3d3c67c4f
child 40499 2e09d1cae90c
--- a/hgext/logtoprocess.py	Sat Aug 18 01:44:38 2018 +0200
+++ b/hgext/logtoprocess.py	Mon Oct 22 15:47:30 2018 +0200
@@ -113,10 +113,8 @@
                     # try to format the log message given the remaining
                     # arguments
                     try:
-                        # Python string formatting with % either uses a
-                        # dictionary *or* tuple, but not both. If we have
-                        # keyword options, assume we need a mapping.
-                        formatted = msg[0] % (opts or msg[1:])
+                        # Format the message as blackbox does
+                        formatted = msg[0] % msg[1:]
                     except (TypeError, KeyError):
                         # Failed to apply the arguments, ignore
                         formatted = msg[0]