This extension is not distributed with Mercurial.
Author: Jin Hui
This extension is able to count files and lines of source code in Mercurial repository. Rewrite from Perl project CLOC.
Configure your .hgrc to enable the extension by adding following lines:
[extensions] cloc = /path/to/cloc.py