Mercurial > hg-stable
changeset 33153: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 |
files | mercurial/obsolete.py |
diffstat | 1 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/obsolete.py Tue Jun 27 01:40:34 2017 +0200 +++ b/mercurial/obsolete.py Tue Jun 27 01:48:41 2017 +0200 @@ -853,22 +853,6 @@ for markerdata in rawmarkers: yield marker(repo, markerdata) -def relevantmarkers(repo, node): - """all obsolete markers relevant to some revision""" - for markerdata in repo.obsstore.relevantmarkers(node): - yield marker(repo, markerdata) - - -def precursormarkers(ctx): - """obsolete marker marking this changeset as a successors""" - for data in ctx.repo().obsstore.precursors.get(ctx.node(), ()): - yield marker(ctx.repo(), data) - -def successormarkers(ctx): - """obsolete marker making this changeset obsolete""" - for data in ctx.repo().obsstore.successors.get(ctx.node(), ()): - yield marker(ctx.repo(), data) - # keep compatibility for the 4.3 cycle def allprecursors(obsstore, nodes, ignoreflags=0): movemsg = 'obsolete.allprecursors moved to obsutil.allprecursors'