Mercurial > hg
comparison mercurial/obsolete.py @ 33147:07439e9f245b
obsolete: delete three unused utility functions
None of this function has been used in the past 5 years, so I think it is safe
to just kill them. All code accessing rich markers is using 'getmarkers(...)'
instead (or raw markers).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 27 Jun 2017 01:48:41 +0200 |
parents | 7017567ebdf2 |
children | 4e30168d7939 |
comparison
equal
deleted
inserted
replaced
33146:7017567ebdf2 | 33147:07439e9f245b |
---|---|
851 rawmarkers = repo.obsstore.relevantmarkers(nodes) | 851 rawmarkers = repo.obsstore.relevantmarkers(nodes) |
852 | 852 |
853 for markerdata in rawmarkers: | 853 for markerdata in rawmarkers: |
854 yield marker(repo, markerdata) | 854 yield marker(repo, markerdata) |
855 | 855 |
856 def relevantmarkers(repo, node): | |
857 """all obsolete markers relevant to some revision""" | |
858 for markerdata in repo.obsstore.relevantmarkers(node): | |
859 yield marker(repo, markerdata) | |
860 | |
861 | |
862 def precursormarkers(ctx): | |
863 """obsolete marker marking this changeset as a successors""" | |
864 for data in ctx.repo().obsstore.precursors.get(ctx.node(), ()): | |
865 yield marker(ctx.repo(), data) | |
866 | |
867 def successormarkers(ctx): | |
868 """obsolete marker making this changeset obsolete""" | |
869 for data in ctx.repo().obsstore.successors.get(ctx.node(), ()): | |
870 yield marker(ctx.repo(), data) | |
871 | |
872 # keep compatibility for the 4.3 cycle | 856 # keep compatibility for the 4.3 cycle |
873 def allprecursors(obsstore, nodes, ignoreflags=0): | 857 def allprecursors(obsstore, nodes, ignoreflags=0): |
874 movemsg = 'obsolete.allprecursors moved to obsutil.allprecursors' | 858 movemsg = 'obsolete.allprecursors moved to obsutil.allprecursors' |
875 util.nouideprecwarn(movemsg, '4.3') | 859 util.nouideprecwarn(movemsg, '4.3') |
876 return obsutil.allprecursors(obsstore, nodes, ignoreflags) | 860 return obsutil.allprecursors(obsstore, nodes, ignoreflags) |