[PATCH 1 of 6 RFC] shrink: instrument sort code to record statistics

Greg Ward greg-hg at gerg.ca
Tue Jan 26 03:52:56 UTC 2010


On Sun, Jan 24, 2010 at 12:48 PM, Benoit Boissinot
<benoit.boissinot at ens-lyon.org> wrote:
> On Wed, Jan 20, 2010 at 10:15:28PM -0500, Greg Ward wrote:
>>          visit = next + visit
>>      ui.write('\n')
>> +    ui.write('%d suboptimal nodes\n' % suboptimal)
>> +    ui.write('%d p2 is predecessor\n' % p2pred)
>>      return ret
>
> If we want to clean that, this should be at least a ui.note() or
> ui.debug().

Oops, quite right.  It's debug output.  Shall I resend, i.e. do you
think these patches are worth pushing with this little tweaks?  Or
should I just keep these for my own experiments and not clutter up the
real shrink-revlog.py?

Greg



More information about the Mercurial-devel mailing list