# HG changeset patch # User Martin von Zweigbergk # Date 2016-02-12 23:42:16 # Node ID 8e13b23794076b205b5d295b1659cc5927e9c6dd # Parent abf12026268386310559fdd581b0420343f0bfb3 changegroup: include subdirectory manifests in verbose size When verbose logging is one, we report the size in bytes of the manifest data in the changegroup. For files, we report the size per file, but I'm not sure we need that level of detail (i.e. size per directory manifest). Instead, report a single figure for the size of root manifest plus submanifests. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -824,10 +824,11 @@ class cg1packer(object): for x in self._packmanifests('', mfnodes, lookupmflinknode): size += len(x) yield x - self._verbosenote(_('%8.i (manifests)\n') % size) for dir, nodes in tmfnodes.iteritems(): for x in self._packmanifests(dir, nodes, nodes.get): + size += len(x) yield x + self._verbosenote(_('%8.i (manifests)\n') % size) yield self._manifestsdone() # The 'source' parameter is useful for extensions