In order to add mq support (useful for getting the patch names listed as tags), one has to specify a .hgrc file in the TracIni, then the normal `[extensions]` section in that .hgrc file.
trac.ini:
{{{
[hg]
hgrc = trac.hgrc
}}}
trac.hgrc (as it was specified with a relative name, the file is located in TRAC_ENV/conf, next to the trac.ini file):
{{{
[extensions]
hgext.mq =
}}}