annotate tests/testlib/update-hg-repo.sh @ 6109:f196f76d8683

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.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 03 Dec 2021 09:37:51 +0300
parents contrib/update-hg-repo.sh@ff19717f985e
children fc3ad54219d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6097
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
1 #!/bin/sh
6109
f196f76d8683 ci: move update-hg-repo.sh to testlib/
Anton Shestakov <av6@dwimlabs.net>
parents: 6097
diff changeset
2 # Clone or update core Mercurial repo at the provided path. Useful for CI
f196f76d8683 ci: move update-hg-repo.sh to testlib/
Anton Shestakov <av6@dwimlabs.net>
parents: 6097
diff changeset
3 # runners that don't have a shared repo setup, e.g. the shell runner that is
f196f76d8683 ci: move update-hg-repo.sh to testlib/
Anton Shestakov <av6@dwimlabs.net>
parents: 6097
diff changeset
4 # currently used for Windows CI.
6097
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
5
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
6 if hg root -R "$1"; then
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
7 hg pull -R "$1"
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
8 else
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
9 rm -rf "$1"
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
10 hg clone https://mirror.octobus.net/hg "$1"
ff19717f985e ci: add windows-py3 tests
Anton Shestakov <av6@dwimlabs.net>
parents:
diff changeset
11 fi