Based on the following blog article:
+ased on the following blog article:
+This extension can be configured through the configuration file to avoid
+repeating the same parameters again and again on the command line. The
+configuration keys have to be under the ``hotfiles`` section, and can have
+one of the following values::
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.
pattern = ui.config('hotfiles', 'pattern')
- ui.debug('No pattern configured, taking all
(non-merge ) commits\n')
+ ui.debug('No pattern configured, taking all non-merge commits\n')
ui.debug('using %s as pattern to filter changesets\n' % pattern)
s += 1 / (1 + exp((-12 * t) + 12))
- ui.progress('score', pos, f,total=len(data))
+ ui.progress('score', pos, f,total=len(data))