# HG changeset patch # User Martin von Zweigbergk # Date 2016-02-13 05:21:28 # Node ID 0c2a088ffcc5a403e5c9a7449f5cb62e2e949400 # Parent 8e13b23794076b205b5d295b1659cc5927e9c6dd changegroup: prune subdirectory dirlogs too We already prune changesets, root manifests and files whose linkrev is in the set of common revisions. We should do the same for dirlogs. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -825,7 +825,8 @@ class cg1packer(object): size += len(x) yield x for dir, nodes in tmfnodes.iteritems(): - for x in self._packmanifests(dir, nodes, nodes.get): + prunednodes = self.prune(ml.dirlog(dir), nodes, commonrevs) + for x in self._packmanifests(dir, prunednodes, nodes.get): size += len(x) yield x self._verbosenote(_('%8.i (manifests)\n') % size)