debugobsstorestat: add test for pruning
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 24 Feb 2014 17:44:12 -0800
changeset 810 de20d5500571
parent 809 5d3ddede6ccf
child 811 acfa2b67cff6
debugobsstorestat: add test for pruning There is multiple prune specific code in this command. So we test it in the presence of prun marker too.
tests/test-prune.t
--- a/tests/test-prune.t	Mon Feb 24 17:32:09 2014 -0800
+++ b/tests/test-prune.t	Mon Feb 24 17:44:12 2014 -0800
@@ -256,3 +256,27 @@
   abort: unknown revision '2702dd0c91e7'!
   [255]
 
+  $ hg debugobsstorestat
+  markers total:                      4
+      for known precursors:           4
+      with parents data:              0
+  markers with no successors:         4
+                1 successors:         0
+                2 successors:         0
+      more than 2 successors:         0
+  average meta length:               27
+      available  keys:
+                 date:                4
+                 user:                4
+  disconnected clusters:              4
+          any known node:             4
+          smallest length:            1
+          longer length:              1
+          median length:              1
+          mean length:                1
+      using parents data:             4
+          any known node:             4
+          smallest length:            1
+          longer length:              1
+          median length:              1
+          mean length:                1