If you are able to provide TeamCity command line arguments for mercurial, you should be able to use the --config
option and enable the extension with a direct path:
hg --config extensions.churn=/path/to/churn.py churn -r 200:300 -a test.py
That said, I believe that churn is included, though not enabled, in the default install so you could first try:
hg --config extensions.hgext.churn= churn -r 200:300
That worked for me locally.
This is based on reading the Churn Wiki and using hg help
to find the --config
option.