TracMercurial: Fixed the instantiation of `trac_ui`. Mercurial expects the first argument of the constructor to be a parent `ui` (e.g. in `ui.copy()`), so having the `log` argument at that position made for some strange (and duplicated) log messages (e.g. when the `hgrc` is not trusted).