Mercurial environment variables for non-branch pipelines
Some tightening of tests also come with this.
We chose not to introduce CI_MERGE_REQUEST_TARGET_HG_BRANCH
for MR pipelines, because that can be deduced from the GitLab target branch notification and just have CI_COMMIT_HG_BRANCH
for the source.
Closes #415 (closed)