changeset 810:de20d5500571

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 24 Feb 2014 17:44:12 -0800
parents 5d3ddede6ccf
children acfa2b67cff6
files tests/test-prune.t
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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