# HG changeset patch # User Benoit Boissinot # Date 1286578815 18000 # Node ID 01b6f058021bac10c0419936f1c7c2c3f34bcfd0 # Parent 9a2de8dae27baa4b46717310d7e51c26699bd85d changegroupsubset: use readdelta() fast path when delta is against a parent diff -r 9a2de8dae27b -r 01b6f058021b 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)