changeset 11661:b16fb5d55b83

changegroupsubset(): ancestors() is not inclusive, we need to remove the "heads"
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Thu, 22 Jul 2010 23:54:57 +0200
parents 5d62df44cac0
children a3bfdf212094
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)