view tests/testlib/map-hg-rev.sh @ 5789:d0389ddf402d

changelog: add an entry aboutt improved divergence resolution
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 22 Feb 2021 17:37:53 +0100
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