view tests/testlib/map-hg-rev.sh @ 5596:8e0bf4869cad

evolve: deactivate bookmark before updating to destination It just feels a little weird to update the working copy while a bookmark is active.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 25 Sep 2020 15:28:17 -0700
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