comparison 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
comparison
equal deleted inserted replaced
35608:fe4e1352c035 35609:c026547454dd
440 ctx = unfilteredrepo[changeid] 440 ctx = unfilteredrepo[changeid]
441 441
442 # If the changeset is obsolete, enrich the message with the reason 442 # If the changeset is obsolete, enrich the message with the reason
443 # that made this changeset not visible 443 # that made this changeset not visible
444 if ctx.obsolete(): 444 if ctx.obsolete():
445 reason = obsutil._getfilteredreason(unfilteredrepo, ctx) 445 msg = obsutil._getfilteredreason(unfilteredrepo, changeid, ctx)
446 msg = _("hidden revision '%s' %s") % (changeid, reason)
447 else: 446 else:
448 msg = _("hidden revision '%s'") % changeid 447 msg = _("hidden revision '%s'") % changeid
449 448
450 hint = _('use --hidden to access hidden revisions') 449 hint = _('use --hidden to access hidden revisions')
451 450