view tests/testlib/map-hg-rev.sh @ 5886:652d20d1c545 stable

changelog: mention the cache fix If it quite important
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 23 Apr 2021 13:05:18 +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