diff tests/test-debugbundle.t @ 23748:4ab66de46a96

bundle: when verbose, show what takes up the space in the generated bundle This is kind of similar to the debugbundle command but gives summarized actual uncompressed number of bytes when creating the bundle. The numbers are as usable as the bundle format is efficient. Hopefully bundle2 will make it a better indicator of actual entropy. This is useful when accepting pull requests to assess whether the repo size increase seems reasonable for the diff before pushing stuff upstream, It has helped me catching large files that should have been committed as largefiles but was committed as regular files in intermediate changesets. This output doesn't combine well with debug output so we only enable it when verbose without debug.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 15 Aug 2014 19:43:32 +0200
parents f2719b387380
children fb1217cea400
line wrap: on
line diff
--- a/tests/test-debugbundle.t	Tue Jan 06 16:30:52 2015 -0800
+++ b/tests/test-debugbundle.t	Fri Aug 15 19:43:32 2014 +0200
@@ -6,8 +6,13 @@
   $ touch a ; hg add a ; hg ci -ma
   $ touch b ; hg add b ; hg ci -mb
   $ touch c ; hg add c ; hg ci -mc
-  $ hg bundle --base 0 --rev tip bundle.hg
+  $ hg bundle --base 0 --rev tip bundle.hg -v
   2 changesets found
+  uncompressed size of bundle content:
+       332 (changelog)
+       282 (manifests)
+       105  b
+       105  c
 
 Terse output: