Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 35610:22c42bfbe7ab
visibility: pass a normal repo to _getfilteredreason
There is no reason to pass an unfiltered-repo to _getfilteredreason and
successorssets, so use a normal repo instead.
Differential Revision: https://phab.mercurial-scm.org/D1853
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 12 Jan 2018 11:15:41 +0000 |
parents | c026547454dd |
children | 2a7e777c9eed |
comparison
equal
deleted
inserted
replaced
35609:c026547454dd | 35610:22c42bfbe7ab |
---|---|
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 msg = obsutil._getfilteredreason(unfilteredrepo, changeid, ctx) | 445 msg = obsutil._getfilteredreason(repo, changeid, ctx) |
446 else: | 446 else: |
447 msg = _("hidden revision '%s'") % changeid | 447 msg = _("hidden revision '%s'") % changeid |
448 | 448 |
449 hint = _('use --hidden to access hidden revisions') | 449 hint = _('use --hidden to access hidden revisions') |
450 | 450 |