changegroupsubset: use readdelta() fast path when delta is against a parent
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 08 Oct 2010 18:00:15 -0500
changeset 12622 01b6f058021b
parent 12621 9a2de8dae27b
child 12623 8f97b50a8d10
changegroupsubset: use readdelta() fast path when delta is against a parent
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Oct 08 17:00:38 2010 -0500
+++ b/mercurial/localrepo.py	Fri Oct 08 18:00:15 2010 -0500
@@ -1408,7 +1408,7 @@
             # the first manifest that references it belongs to.
             def collect_msng_filenodes(mnfstnode):
                 r = mnfst.rev(mnfstnode)
-                if r - 1 in mnfst.parentrevs(r):
+                if mnfst.deltaparent(r) in mnfst.parentrevs(r):
                     # If the previous rev is one of the parents,
                     # we only need to see a diff.
                     deltamf = mnfst.readdelta(mnfstnode)