view tests/testlib/map-hg-rev.sh @ 5812:5fdf6faaf977

evolve: add CHANGELOG entry
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Sat, 05 Sep 2020 09:24:33 +0530
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