Mercurial > evolve
changeset 6907:5439ac6b2fc2 mercurial-6.2
ci: replace `hg id` call with $CI_COMMIT_HG_BRANCH
This is easier to do than install newer Mercurial on an older CI image.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 24 Oct 2024 20:40:46 +0400 |
parents | 67b8a57200f4 |
children | 2bac0e2340e0 |
files | .gitlab-ci.yml |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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"