mercurial/obsutil.py
changeset 35610 22c42bfbe7ab
parent 35609 c026547454dd
child 35875 c0a6733f7e7a
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