view tests/testlib/map-hg-rev.sh @ 5906:55b7e6523559 stable

Added tag 10.3.1 for changeset 93dc3cb68842
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 25 Apr 2021 15:32:51 +0200
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