# HG changeset patch # User Pierre-Yves David # Date 1496654100 -3600 # Node ID 3c594000844b56c16bdede2d9b7f792ff19c402d # Parent abe6dfbdc74437edd98651ad083aa7bfcee86e5b debugobsstorestat: adds static about actually obsolete changeses diff -r abe6dfbdc744 -r 3c594000844b hgext3rd/evolve/debugcmd.py --- a/hgext3rd/evolve/debugcmd.py Tue Jun 06 15:10:13 2017 -0700 +++ b/hgext3rd/evolve/debugcmd.py Mon Jun 05 10:15:00 2017 +0100 @@ -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 -r abe6dfbdc744 -r 3c594000844b tests/test-evolve.t --- a/tests/test-evolve.t Tue Jun 06 15:10:13 2017 -0700 +++ b/tests/test-evolve.t Mon Jun 05 10:15:00 2017 +0100 @@ -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 -r abe6dfbdc744 -r 3c594000844b tests/test-prune.t --- a/tests/test-prune.t Tue Jun 06 15:10:13 2017 -0700 +++ b/tests/test-prune.t Mon Jun 05 10:15:00 2017 +0100 @@ -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