# HG changeset patch # User Anton Shestakov # Date 1638513471 -10800 # Node ID f196f76d86835db7e109c66435edbf3419d06355 # Parent ed68f64f5d0fcc43b964e0f6f09f2877faf482be ci: move update-hg-repo.sh to testlib/ Moving the file from contrib/, which is skipped when building a tarball, means we have one more file "appear" in test-check-sdist.t. diff -r ed68f64f5d0f -r f196f76d8683 .gitlab-ci.yml --- a/.gitlab-ci.yml Tue Dec 07 21:05:42 2021 +0300 +++ b/.gitlab-ci.yml Fri Dec 03 09:37:51 2021 +0300 @@ -98,7 +98,7 @@ before_script: - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt' script: - - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && contrib/update-hg-repo.sh C:/Temp/hg' + - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && tests/testlib/update-hg-repo.sh C:/Temp/hg' - > C:/MinGW/msys/1.0/bin/sh.exe --login -c ' cd "$OLDPWD" && diff -r ed68f64f5d0f -r f196f76d8683 contrib/update-hg-repo.sh --- a/contrib/update-hg-repo.sh Tue Dec 07 21:05:42 2021 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -#!/bin/sh - -if hg root -R "$1"; then - hg pull -R "$1" -else - rm -rf "$1" - hg clone https://mirror.octobus.net/hg "$1" -fi diff -r ed68f64f5d0f -r f196f76d8683 tests/test-check-sdist.t --- a/tests/test-check-sdist.t Tue Dec 07 21:05:42 2021 +0300 +++ b/tests/test-check-sdist.t Fri Dec 03 09:37:51 2021 +0300 @@ -35,7 +35,7 @@ $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files $ wc -l files - 353 files + 354 files $ fgrep debian files tests/test-check-debian.t $ fgrep __init__.py files diff -r ed68f64f5d0f -r f196f76d8683 tests/testlib/update-hg-repo.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/testlib/update-hg-repo.sh Fri Dec 03 09:37:51 2021 +0300 @@ -0,0 +1,11 @@ +#!/bin/sh +# Clone or update core Mercurial repo at the provided path. Useful for CI +# runners that don't have a shared repo setup, e.g. the shell runner that is +# currently used for Windows CI. + +if hg root -R "$1"; then + hg pull -R "$1" +else + rm -rf "$1" + hg clone https://mirror.octobus.net/hg "$1" +fi