comparison mercurial/obsutil.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 c0a6733f7e7a
comparison
equal deleted inserted replaced
35609:c026547454dd 35610:22c42bfbe7ab
873 "superseded_split": _("hidden revision '%s' was split as: %s"), 873 "superseded_split": _("hidden revision '%s' was split as: %s"),
874 "superseded_split_several": _("hidden revision '%s' was split as: %s and " 874 "superseded_split_several": _("hidden revision '%s' was split as: %s and "
875 "%d more"), 875 "%d more"),
876 } 876 }
877 877
878 def _getfilteredreason(unfilteredrepo, changeid, ctx): 878 def _getfilteredreason(repo, changeid, ctx):
879 """return a human-friendly string on why a obsolete changeset is hidden 879 """return a human-friendly string on why a obsolete changeset is hidden
880 """ 880 """
881 successors = successorssets(unfilteredrepo, ctx.node()) 881 successors = successorssets(repo, ctx.node())
882 fate = _getobsfate(successors) 882 fate = _getobsfate(successors)
883 883
884 # Be more precise in case the revision is superseded 884 # Be more precise in case the revision is superseded
885 if fate == 'pruned': 885 if fate == 'pruned':
886 return filteredmsgtable['pruned'] % changeid 886 return filteredmsgtable['pruned'] % changeid