view tests/testlib/obsmarker-common.sh @ 50878:bbaac3a222bb

gpg: use a context manager to write `.hgsigs`
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 20 Aug 2023 16:20:56 -0400
parents 86f39a89b63e
children
line wrap: on
line source

mkcommit() {
   name="$1"
   shift
   echo "$name" > "$name"
   hg add "$name"
   hg ci -m "$name" "$@"
}

getid() {
   hg log --hidden --template '{node}\n' --rev "$1"
}

cat >> $HGRCPATH <<EOF
[alias]
debugobsolete=debugobsolete -d '0 0'
EOF