view tests/testlib/common.sh @ 6876:2edffcd94850

topic: make debugformatfqbn use short format by default This is to make the debug command more consistent with the internal API.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 19 Sep 2024 16:50:21 +0400
parents b1a04ff0f99e
children
line wrap: on
line source

. $TESTDIR/testlib/pythonpath.sh

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]
glog = log -GT "{rev}:{node|short} {desc}\n ({bookmarks}) {phase} {instabilities}\n"
EOF