Add hg_repo capabilities.