view tests/testlib/map-hg-rev.sh @ 6295:e81b3516242f

topic: update a comment about branch:topic, use the modern version
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 27 Jul 2022 20:23:08 +0400
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