mercurial/context.py
changeset 35609 c026547454dd
parent 35608 fe4e1352c035
child 35610 22c42bfbe7ab
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