# HG changeset patch # User Pierre-Yves David # Date 1393292652 28800 # Node ID de20d550057122328ff17958e315c7eeded04d96 # Parent 5d3ddede6ccf6eb6db1a32e44ca4972a58008926 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. diff -r 5d3ddede6ccf -r de20d5500571 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