mercurial/discovery.py
changeset 17009 0c18aed2fcca
parent 16866 91f3ac205816
child 17011 25f7d40fe735
--- a/mercurial/discovery.py	Fri Jun 08 07:59:37 2012 -0700
+++ b/mercurial/discovery.py	Fri Jun 08 08:39:44 2012 -0700
@@ -214,8 +214,8 @@
                 if latest not in newheads:
                     continue
                 minhrev = min(cl.rev(h) for h in newheads)
-                reachable = cl.reachable(latest, cl.node(minhrev))
-                reachable.remove(latest)
+                reachable = [cl.node(rev) for rev in
+                             cl.ancestors([cl.rev(latest)], minhrev)]
                 newheads.difference_update(reachable)
         branches = set([None])
         newmap = {None: newheads}