Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 35608:fe4e1352c035
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
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 12 Jan 2018 11:09:04 +0000 |
parents | cb0db11f392d |
children | c026547454dd |
comparison
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 |