diff 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
line wrap: on
line diff
--- 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