changeset 1128:aabb145058d7

debugobsstorestats: drop the average meta length Does not have much sense with the existence of multiple format with different meta storage. We drop it for now and will introduce and average markers length later.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 16 Oct 2014 11:54:44 -0700
parents 87625964c333
children da565c825429
files hgext/evolve.py tests/test-evolve.t tests/test-prune.t
diffstat 3 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/evolve.py	Sat Oct 11 02:27:21 2014 +0530
+++ b/hgext/evolve.py	Thu Oct 16 11:54:44 2014 -0700
@@ -982,7 +982,6 @@
     sucscount = [0, 0 , 0, 0]
     known = 0
     parentsdata = 0
-    metatotallenght = 0
     metakeys = {}
     # node -> cluster mapping
     #   a cluster is a (set(nodes), set(markers)) tuple
@@ -994,7 +993,6 @@
             known += 1
         nbsucs = len(mark[1])
         sucscount[min(nbsucs, 3)] += 1
-        metatotallenght += len(mark[3])
         meta = obsolete.decodemeta(mark[3])
         for key in meta:
             metakeys.setdefault(key, 0)
@@ -1059,8 +1057,6 @@
     ui.write('              2 successors: %9i\n' % sucscount[2])
     ui.write('    more than 2 successors: %9i\n' % sucscount[3])
     # meta data info
-    ui.write('average meta length:        %9i\n'
-             % (metatotallenght/len(store._all)))
     ui.write('    available  keys:\n')
     for key in sorted(metakeys):
         ui.write('    %15s:        %9i\n' % (key, metakeys[key]))
--- a/tests/test-evolve.t	Sat Oct 11 02:27:21 2014 +0530
+++ b/tests/test-evolve.t	Thu Oct 16 11:54:44 2014 -0700
@@ -697,7 +697,6 @@
                 1 successors:        10
                 2 successors:         0
       more than 2 successors:         0
-  average meta length:                9
       available  keys:
                  user:               10
   disconnected clusters:              1
--- a/tests/test-prune.t	Sat Oct 11 02:27:21 2014 +0530
+++ b/tests/test-prune.t	Thu Oct 16 11:54:44 2014 -0700
@@ -273,7 +273,6 @@
                 1 successors:         0
                 2 successors:         0
       more than 2 successors:         0
-  average meta length:                9
       available  keys:
                  user:                4
   disconnected clusters:              4