changegroupsubset(): ancestors() is not inclusive, we need to remove the "heads"
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Thu, 22 Jul 2010 23:54:57 +0200
changeset 11661 b16fb5d55b83
parent 11660 5d62df44cac0
child 11662 a3bfdf212094
changegroupsubset(): ancestors() is not inclusive, we need to remove the "heads"
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Jul 22 23:44:14 2010 +0200
+++ b/mercurial/localrepo.py	Thu Jul 22 23:54:57 2010 +0200
@@ -1398,6 +1398,8 @@
                 clnode = cl.node(revlog.linkrev(revlog.rev(n)))
                 if clnode in has_cl_set:
                     hasset.add(n)
+            for n in hasset:
+                missingnodes.pop(n, None)
             for r in revlog.ancestors(*[revlog.rev(n) for n in hasset]):
                 missingnodes.pop(revlog.node(r), None)