# HG changeset patch # User Pierre-Yves David # Date 1350599411 -7200 # Node ID 46e1a4e2422527a5db3313ddb4bf9da54bfee002 # Parent 3cc06457f15e29aaaec32aef9615220aeed3b4b1 obsolete: rename `anysuccessors` into `allsuccessors` The "any" prefix looks like it returned a boolean. `allsuccessors` is more accurate. diff -r 3cc06457f15e -r 46e1a4e24225 mercurial/bookmarks.py --- 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) diff -r 3cc06457f15e -r 46e1a4e24225 mercurial/discovery.py --- 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 diff -r 3cc06457f15e -r 46e1a4e24225 mercurial/obsolete.py --- 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 This is a linear yield unsuited to detecting split changesets."""