Mercurial > hg-stable
comparison mercurial/localrepo.py @ 11664:8b3fea709bd2
changegroupsubset(): with the fix, prune() is actually useful in the testsuite
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sat, 24 Jul 2010 00:03:19 +0200 |
parents | a3bfdf212094 |
children | 1f7f8bc45240 |
comparison
equal
deleted
inserted
replaced
11663:c1b11ee12fe7 | 11664:8b3fea709bd2 |
---|---|
1368 | 1368 |
1369 # If we determine that a particular file or manifest node must be a | 1369 # If we determine that a particular file or manifest node must be a |
1370 # node that the recipient of the changegroup will already have, we can | 1370 # node that the recipient of the changegroup will already have, we can |
1371 # also assume the recipient will have all the parents. This function | 1371 # also assume the recipient will have all the parents. This function |
1372 # prunes them from the set of missing nodes. | 1372 # prunes them from the set of missing nodes. |
1373 # XXX is it even useful? the testsuite doesn't trigger it | |
1374 def prune(revlog, missingnodes): | 1373 def prune(revlog, missingnodes): |
1375 hasset = set() | 1374 hasset = set() |
1376 # If a 'missing' filenode thinks it belongs to a changenode we | 1375 # If a 'missing' filenode thinks it belongs to a changenode we |
1377 # assume the recipient must have, then the recipient must have | 1376 # assume the recipient must have, then the recipient must have |
1378 # that filenode. | 1377 # that filenode. |