# HG changeset patch # User Anton Shestakov # Date 1729788046 -14400 # Node ID 5439ac6b2fc232e0d69a14d19b4b5b1c17a12d87 # Parent 67b8a57200f40d1b0147caf59c37f42c39bd76fa ci: replace `hg id` call with $CI_COMMIT_HG_BRANCH This is easier to do than install newer Mercurial on an older CI image. diff -r 67b8a57200f4 -r 5439ac6b2fc2 .gitlab-ci.yml --- a/.gitlab-ci.yml Thu Oct 24 19:48:01 2024 +0400 +++ b/.gitlab-ci.yml Thu Oct 24 20:40:46 2024 +0400 @@ -1,6 +1,6 @@ .prepare_hg: &prepare_hg - hg pull -R /ci/repos/mercurial/ https://repo.mercurial-scm.org/hg - - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$(hg identify --branch)")} + - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh $CI_COMMIT_HG_BRANCH)} - hg -R /ci/repos/mercurial/ update "$hg_branch" - hg_rev=$(hg log -R /ci/repos/mercurial/ -r . -T '{node}') - echo testing with mercurial branch="$hg_branch", revision="$hg_rev"