Mercurial > evolve
annotate tests/testlib/update-hg-repo.sh @ 6931:237f99ee3d64 stable
tests: remove leading spaces in `hg help` output, run only on Mercurial 6.9+
Core decided to remove a lot of leading spaces in docstrings to support Python
3.13, see 51057ab0dffa for details.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 11 Nov 2024 10:39:57 +0400 |
parents | fc3ad54219d7 |
children |
rev | line source |
---|---|
6097 | 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 | 5 |
6110
fc3ad54219d7
tests: use direct mirror URL in update-hg-repo.sh
Anton Shestakov <av6@dwimlabs.net>
parents:
6109
diff
changeset
|
6 URL=https://mirror.octobus.net/hg |
6097 | 7 if hg root -R "$1"; then |
6110
fc3ad54219d7
tests: use direct mirror URL in update-hg-repo.sh
Anton Shestakov <av6@dwimlabs.net>
parents:
6109
diff
changeset
|
8 hg pull -R "$1" "$URL" |
6097 | 9 else |
10 rm -rf "$1" | |
6110
fc3ad54219d7
tests: use direct mirror URL in update-hg-repo.sh
Anton Shestakov <av6@dwimlabs.net>
parents:
6109
diff
changeset
|
11 hg clone "$URL" "$1" |
6097 | 12 fi |