diff mercurial/context.py @ 35609:c026547454dd

visibility: make the filtered message translatable Introduce a filtered message table to ease translation of these messages. Differential Revision: https://phab.mercurial-scm.org/D1852
author Boris Feld <boris.feld@octobus.net>
date Fri, 12 Jan 2018 11:10:18 +0000
parents fe4e1352c035
children 22c42bfbe7ab
line wrap: on
line diff
--- 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