Mercurial > evolve
view tests/testlib/update-hg-repo.sh @ 6850:6d22e9a596c4
topic: compatibility for revbranchcache being in a separate module now
The newer revbranchcache defaults to v2, so the name of the cache file is
different. Let's glob and hide it, since its actual contents look the same (at
least for the moment).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 28 Sep 2024 16:09:03 +0400 |
parents | fc3ad54219d7 |
children |
line wrap: on
line source
#!/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. URL=https://mirror.octobus.net/hg if hg root -R "$1"; then hg pull -R "$1" "$URL" else rm -rf "$1" hg clone "$URL" "$1" fi