tests/testlib/obsmarker-common.sh
author Mathias De Mare <mathias.de_mare@nokia.com>
Wed, 17 Nov 2021 13:28:22 +0100
branchstable
changeset 48328 4713bcf78037
parent 42970 86f39a89b63e
permissions -rw-r--r--
dockerrpm: always use current user and group Using uid 1000 and gid 1000 works by default in some cases, but 'id -u' and 'id -g' should work in all cases. Differential Revision: https://phab.mercurial-scm.org/D11767

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