This extension is currently being distributed along with Mercurial.
Author: Josef "Jeff" Sipek
This extension creates a graph showing the number of line changes per user for a given repository or file.
It adds the churn command.
Just add a new entry in the extensions section of the mercurial configuration file (hgrc):
An aliases map file can be provided to convert recorded emails to any other desired content. The aliases file has one alias per line in the following format: <alias email> <actual email>
hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]
hg churn -r 200:300 test.py