Mercurial > evolve
comparison .gitlab-ci.yml @ 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 | 701d4bb5d53c |
comparison
equal
deleted
inserted
replaced
6906:67b8a57200f4 | 6907:5439ac6b2fc2 |
---|---|
1 .prepare_hg: &prepare_hg | 1 .prepare_hg: &prepare_hg |
2 - hg pull -R /ci/repos/mercurial/ https://repo.mercurial-scm.org/hg | 2 - hg pull -R /ci/repos/mercurial/ https://repo.mercurial-scm.org/hg |
3 - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$(hg identify --branch)")} | 3 - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh $CI_COMMIT_HG_BRANCH)} |
4 - hg -R /ci/repos/mercurial/ update "$hg_branch" | 4 - hg -R /ci/repos/mercurial/ update "$hg_branch" |
5 - hg_rev=$(hg log -R /ci/repos/mercurial/ -r . -T '{node}') | 5 - hg_rev=$(hg log -R /ci/repos/mercurial/ -r . -T '{node}') |
6 - echo testing with mercurial branch="$hg_branch", revision="$hg_rev" | 6 - echo testing with mercurial branch="$hg_branch", revision="$hg_rev" |
7 | 7 |
8 pytype: | 8 pytype: |