Mercurial > hg
diff mercurial/discovery.py @ 17827:612db9d7e76a
obsolete: have `allsuccessors` takes a list of nodes
Additional logic, used to detect mutable history troubles, will need to quickly
compute successors of a whole set of changeset.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Tue, 16 Oct 2012 15:49:58 +0200 |
parents | 46e1a4e24225 |
children | 83cb1a1a705d |
line wrap: on
line diff
--- a/mercurial/discovery.py Fri Oct 19 00:30:11 2012 +0200 +++ b/mercurial/discovery.py Tue Oct 16 15:49:58 2012 +0200 @@ -298,7 +298,7 @@ if nh in repo and repo[nh].phase() <= phases.public: newhs.add(nh) else: - for suc in obsolete.allsuccessors(repo.obsstore, nh): + for suc in obsolete.allsuccessors(repo.obsstore, [nh]): if suc != nh and suc in allfuturecommon: discardedheads.add(nh) break