mercurial/context.py
changeset 35608 fe4e1352c035
parent 35580 cb0db11f392d
child 35609 c026547454dd
equal deleted inserted replaced
35607:24b5106e3e1e 35608:fe4e1352c035
   437 
   437 
   438         # Check if the changeset is obsolete
   438         # Check if the changeset is obsolete
   439         unfilteredrepo = repo.unfiltered()
   439         unfilteredrepo = repo.unfiltered()
   440         ctx = unfilteredrepo[changeid]
   440         ctx = unfilteredrepo[changeid]
   441 
   441 
   442         # If the changeset is obsolete, enrich the hint with the reason that
   442         # If the changeset is obsolete, enrich the message with the reason
   443         # 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             reason = obsutil._getfilteredreason(unfilteredrepo, ctx)
   446             msg = _("hidden revision '%s' %s") % (changeid, reason)
   446             msg = _("hidden revision '%s' %s") % (changeid, reason)
   447         else:
   447         else:
   448             msg = _("hidden revision '%s'") % changeid
   448             msg = _("hidden revision '%s'") % changeid