obsolete: rename `anysuccessors` into `allsuccessors`
The "any" prefix looks like it returned a boolean. `allsuccessors` is more
accurate.
--- a/mercurial/bookmarks.py Fri Oct 19 00:28:13 2012 +0200
+++ b/mercurial/bookmarks.py Fri Oct 19 00:30:11 2012 +0200
@@ -266,7 +266,7 @@
for c in validdests:
if c.phase() > phases.public:
# obsolescence marker does not apply to public changeset
- succs.update(obsolete.anysuccessors(repo.obsstore,
+ succs.update(obsolete.allsuccessors(repo.obsstore,
c.node()))
validdests = set(repo.set('%ln::', succs))
validdests.remove(old)
--- a/mercurial/discovery.py Fri Oct 19 00:28:13 2012 +0200
+++ b/mercurial/discovery.py Fri Oct 19 00:30:11 2012 +0200
@@ -298,7 +298,7 @@
if nh in repo and repo[nh].phase() <= phases.public:
newhs.add(nh)
else:
- for suc in obsolete.anysuccessors(repo.obsstore, nh):
+ for suc in obsolete.allsuccessors(repo.obsstore, nh):
if suc != nh and suc in allfuturecommon:
discardedheads.add(nh)
break
--- a/mercurial/obsolete.py Fri Oct 19 00:28:13 2012 +0200
+++ b/mercurial/obsolete.py Fri Oct 19 00:30:11 2012 +0200
@@ -351,7 +351,7 @@
for data in ctx._repo.obsstore.successors.get(ctx.node(), ()):
yield marker(ctx._repo, data)
-def anysuccessors(obsstore, node):
+def allsuccessors(obsstore, node):
"""Yield every successor of <node>
This is a linear yield unsuited to detecting split changesets."""