changeset 12622:01b6f058021b

changegroupsubset: use readdelta() fast path when delta is against a parent
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 08 Oct 2010 18:00:15 -0500
parents 9a2de8dae27b
children 8f97b50a8d10
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)