##// END OF EJS Templates
visibility: pass a normal repo to _getfilteredreason...
Boris Feld -
r35628:22c42bfb default
parent child Browse files
Show More
@@ -442,7 +442,7 b' def _filterederror(repo, changeid):'
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
@@ -875,10 +875,10 b' filteredmsgtable = {'
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
General Comments 0
You need to be logged in to leave comments. Login now