# HG changeset patch # User Pierre-Yves David # Date 1496654100 -3600 # Node ID 3c594000844b56c16bdede2d9b7f792ff19c402d # Parent abe6dfbdc74437edd98651ad083aa7bfcee86e5b debugobsstorestat: adds static about actually obsolete changeses diff --git a/hgext3rd/evolve/debugcmd.py b/hgext3rd/evolve/debugcmd.py --- a/hgext3rd/evolve/debugcmd.py +++ b/hgext3rd/evolve/debugcmd.py @@ -91,7 +91,10 @@ fc = (frozenset(c[0]), frozenset(c[1])) for n in fc[0]: pclustersmap[n] = fc - ui.write((' for known precursors: %9i\n' % known)) + numobs = len(unfi.revs('obsolete()')) + numtotal = len(unfi) + ui.write((' for known precursors: %9i' % known)) + ui.write((' (%i/%i obsolete changesets)\n' % (numobs, numtotal))) ui.write((' with parents data: %9i\n' % parentsdata)) # successors data ui.write(('markers with no successors: %9i\n' % sucscount[0])) diff --git a/tests/test-evolve.t b/tests/test-evolve.t --- a/tests/test-evolve.t +++ b/tests/test-evolve.t @@ -785,7 +785,7 @@ $ hg debugobsstorestat markers total: 10 - for known precursors: 10 + for known precursors: 10 (10/13 obsolete changesets) with parents data: 0 markers with no successors: 0 1 successors: 10 diff --git a/tests/test-prune.t b/tests/test-prune.t --- a/tests/test-prune.t +++ b/tests/test-prune.t @@ -346,7 +346,7 @@ $ hg debugobsstorestat markers total: 7 - for known precursors: 7 + for known precursors: 7 (7/15 obsolete changesets) with parents data: [04] (re) markers with no successors: 7 1 successors: 0