mercurial/discovery.py
changeset 17826 46e1a4e24225
parent 17550 fc530080013b
child 17827 612db9d7e76a
--- 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