diff -r fe4e1352c035 -r c026547454dd mercurial/context.py --- a/mercurial/context.py Fri Jan 12 11:09:04 2018 +0000 +++ b/mercurial/context.py Fri Jan 12 11:10:18 2018 +0000 @@ -442,8 +442,7 @@ # If the changeset is obsolete, enrich the message with the reason # that made this changeset not visible if ctx.obsolete(): - reason = obsutil._getfilteredreason(unfilteredrepo, ctx) - msg = _("hidden revision '%s' %s") % (changeid, reason) + msg = obsutil._getfilteredreason(unfilteredrepo, changeid, ctx) else: msg = _("hidden revision '%s'") % changeid