revert: remove unnecessary check as `msg` should never be a callable now
authorSushil khanchi <sushilkhanchi97@gmail.com>
Mon, 03 Sep 2018 10:44:52 +0530
changeset 39404 90afd61ef8a2
parent 39403 66b5ded95185
child 39405 cb70501d8b71
revert: remove unnecessary check as `msg` should never be a callable now Differential Revision: https://phab.mercurial-scm.org/D4448
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Sun Sep 02 16:32:11 2018 +0900
+++ b/mercurial/cmdutil.py	Mon Sep 03 10:44:52 2018 +0530
@@ -3020,8 +3020,6 @@
                                 else:
                                     util.rename(target, bakname)
                     if ui.verbose or not exact:
-                        if not isinstance(msg, bytes):
-                            msg = msg(abs)
                         ui.status(msg % rel)
                 elif exact:
                     ui.warn(msg % rel)