--- a/hgext3rd/evolve/obshistory.py Sat Dec 28 23:20:05 2019 +0530
+++ b/hgext3rd/evolve/obshistory.py Thu Nov 28 11:37:56 2019 +0700
@@ -834,30 +834,6 @@
return None
return _prepare_hunk(lines)
-def _getobsfate(successorssets):
- """ Compute a changeset obsolescence fate based on his successorssets.
- Successors can be the tipmost ones or the immediate ones.
- Returns one fate in the following list:
- - pruned
- - diverged
- - superseed
- - superseed_split
- """
-
- if len(successorssets) == 0:
- # The commit has been pruned
- return b'pruned'
- elif len(successorssets) > 1:
- return b'diverged'
- else:
- # No divergence, only one set of successors
- successors = successorssets[0]
-
- if len(successors) == 1:
- return b'superseed'
- else:
- return b'superseed_split'
-
def _getobsfateandsuccs(repo, revnode, successorssets=None):
""" Return a tuple containing:
- the reason a revision is obsolete (diverged, pruned or superseed)
@@ -867,7 +843,7 @@
if successorssets is None:
successorssets = obsutil.successorssets(repo, revnode)
- fate = _getobsfate(successorssets)
+ fate = obsutil._getobsfate(successorssets)
# Apply node.short if we have no divergence
if len(successorssets) == 1: