diff -r c026547454dd -r 22c42bfbe7ab mercurial/context.py --- a/mercurial/context.py Fri Jan 12 11:10:18 2018 +0000 +++ b/mercurial/context.py Fri Jan 12 11:15:41 2018 +0000 @@ -442,7 +442,7 @@ # If the changeset is obsolete, enrich the message with the reason # that made this changeset not visible if ctx.obsolete(): - msg = obsutil._getfilteredreason(unfilteredrepo, changeid, ctx) + msg = obsutil._getfilteredreason(repo, changeid, ctx) else: msg = _("hidden revision '%s'") % changeid