print "Mercurial version too old, please upgrade to at least 1.9"
[('r', 'rev', '', _('operate up to a given revision'), 'REV'),
('p', 'pattern', '', _('pattern to filter issue-fixing commits'),
def hotfiles(ui, repo, node=None, rev='.', pattern=None, **opts):
""" Print the ten files the most susceptible to contains issues.
The calculation is based on the number of time a file was touched during
a bug-fixing commit, later commits weight more than earlier ones.
The list of files analysed is based on the files present in the sepcified
revision, this list can be filtered through the usage of include/exclude
patterns on the command line or in the configuration file.
The list of revisions analysed is by default all the non-merge revision.
This list can be filtered by using a pattern given through the command line
or the configuration file.
- ui.write('% 4d: %s\n' % (int(s
/max * 100), f))
+ ui.write('% 4d: %s\n' % (int(smax * 100), f))