# HG changeset patch # User Boris Feld # Date 2018-01-12 11:09:04 # Node ID fe4e1352c035cd295cdb4fd72fd36beeccf8da6f # Parent 24b5106e3e1e265cb60258b314ae2b774610de81 visibility: fix a comment introduced before which is not up-to-date 265cd9e19d26 introduced a comment in _filterederror that was not updated with the latest iterations of the patch, fix the comment. Differential Revision: https://phab.mercurial-scm.org/D1851 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -439,8 +439,8 @@ def _filterederror(repo, changeid): unfilteredrepo = repo.unfiltered() ctx = unfilteredrepo[changeid] - # If the changeset is obsolete, enrich the hint with the reason that - # made this changeset not visible + # 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)