comparison mercurial/obsolete.py @ 26265:077f20eed4b2

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 15 Sep 2015 13:12:03 -0700
parents ac4ed8d6ec50
children 5c217bcc4597
comparison
equal deleted inserted replaced
26264:ac4ed8d6ec50 26265:077f20eed4b2
839 foreground = set(repo.set('%ln::', known)) 839 foreground = set(repo.set('%ln::', known))
840 return set(c.node() for c in foreground) 840 return set(c.node() for c in foreground)
841 841
842 842
843 def successorssets(repo, initialnode, cache=None): 843 def successorssets(repo, initialnode, cache=None):
844 """Return all set of successors of initial nodes 844 """Return set of all latest successors of initial nodes
845 845
846 The successors set of a changeset A are the group of revisions that succeed 846 The successors set of a changeset A are the group of revisions that succeed
847 A. It succeeds A as a consistent whole, each revision being only a partial 847 A. It succeeds A as a consistent whole, each revision being only a partial
848 replacement. The successors set contains non-obsolete changesets only. 848 replacement. The successors set contains non-obsolete changesets only.
849 849