tests/testlib/obsmarker-common.sh
author Yuya Nishihara <yuya@tcha.org>
Fri, 29 Jun 2018 23:13:23 +0900
changeset 38526 54d7aaa243cc
parent 32897 1858fc2327ef
child 42970 86f39a89b63e
permissions -rw-r--r--
revset: add partial support for ancestor(wdir()) It's easy, so let's make it happen. I'm not certain if 'wdir() &' should be required. ancestors(wdir()) works without it, but ancestor(wdir()) doesn't as of now. That's the issue of fullreposet.__contains__() vs __and__().

mkcommit() {
   echo "$1" > "$1"
   hg add "$1"
   hg ci -m "$1"
}

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

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