# HG changeset patch # User Pierre-Yves David # Date 1413485684 25200 # Node ID aabb145058d7f5d5428f8d9bb7dd70a652fee779 # Parent 87625964c3334a6bcc10176e6093aa0380ed6395 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. diff -r 87625964c333 -r aabb145058d7 hgext/evolve.py --- 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])) diff -r 87625964c333 -r aabb145058d7 tests/test-evolve.t --- 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 diff -r 87625964c333 -r aabb145058d7 tests/test-prune.t --- 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