view tests/testlib/map-hg-rev.sh @ 5715:2238dd83c5b3 stable

tests: update with more detailed exit codes CORE-TEST-OUTPUT-UPDATE: ac362d5a7893
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 26 Nov 2020 14:26:40 +0800
parents 4f3c87584a4a
children
line wrap: on
line source

#!/bin/sh
set -eu

case $1 in
    default)
        echo default
        ;;
    mercurial-*)
        exp=$(echo "$1" | cut -d- -f2 | sed 's#\.#\\.#g')
        echo 'max(tag("re:^'"$exp"'"))'
        ;;
    *)
        echo stable
        ;;
esac