Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 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 |
comparison
equal
deleted
inserted
replaced
11660:5d62df44cac0 | 11661:b16fb5d55b83 |
---|---|
1396 # that filenode. | 1396 # that filenode. |
1397 for n in missingnodes: | 1397 for n in missingnodes: |
1398 clnode = cl.node(revlog.linkrev(revlog.rev(n))) | 1398 clnode = cl.node(revlog.linkrev(revlog.rev(n))) |
1399 if clnode in has_cl_set: | 1399 if clnode in has_cl_set: |
1400 hasset.add(n) | 1400 hasset.add(n) |
1401 for n in hasset: | |
1402 missingnodes.pop(n, None) | |
1401 for r in revlog.ancestors(*[revlog.rev(n) for n in hasset]): | 1403 for r in revlog.ancestors(*[revlog.rev(n) for n in hasset]): |
1402 missingnodes.pop(revlog.node(r), None) | 1404 missingnodes.pop(revlog.node(r), None) |
1403 | 1405 |
1404 # Add the nodes that were explicitly requested. | 1406 # Add the nodes that were explicitly requested. |
1405 def add_extra_nodes(name, nodes): | 1407 def add_extra_nodes(name, nodes): |