view tests/testlib/update-hg-repo.sh @ 6269:16f6b18b9ec0

topicmap: remove unused branchtip and branchheads methods of _topiccache These methods aren't unused per say, but they never receive topic keyword from any callers, so they simply always call+return super() version of themselves.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 08 Jul 2022 17:52:25 +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