mercurial/obsutil.py
changeset 33993 3d0f8918351b
parent 33942 54c21114e41d
child 33994 38f08eaba6b0
--- a/mercurial/obsutil.py	Tue Aug 22 17:16:13 2017 -0400
+++ b/mercurial/obsutil.py	Mon Jul 03 15:33:27 2017 +0200
@@ -590,3 +590,14 @@
         values.append({'successors': sset, 'markers': sset.markers})
 
     return values
+
+def successorsetverb(successorset):
+    """ Return the verb summarizing the successorset
+    """
+    if not successorset:
+        verb = 'pruned'
+    elif len(successorset) == 1:
+        verb = 'rewritten'
+    else:
+        verb = 'split'
+    return verb