obsolete: clarify that 'successorssets' returns the latest successors
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 15 Sep 2015 13:12:03 -0700
changeset 26265 077f20eed4b2
parent 26264 ac4ed8d6ec50
child 26266 1e042e31bd0c
obsolete: clarify that 'successorssets' returns the latest successors We do not return the first successors we found, we returns the latest (non obsolete (mostly)) one following the obsolete link transitively. We update the documentation to make this clean.
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Tue Sep 15 13:10:25 2015 -0700
+++ b/mercurial/obsolete.py	Tue Sep 15 13:12:03 2015 -0700
@@ -841,7 +841,7 @@
 
 
 def successorssets(repo, initialnode, cache=None):
-    """Return all set of successors of initial nodes
+    """Return set of all latest successors of initial nodes
 
     The successors set of a changeset A are the group of revisions that succeed
     A. It succeeds A as a consistent whole, each revision being only a partial