--- a/tests/test-obsolete-bundle-strip.t Fri Jun 02 23:29:20 2017 -0700
+++ b/tests/test-obsolete-bundle-strip.t Fri Jun 02 23:05:03 2017 -0700
@@ -76,8 +76,8 @@
> echo '### Exclusive markers ###'
> cat "${exclufile}"
> # if the matched revs do not have children, we also check the result of strip
- > orphan=`hg log --hidden -T '.\n' --rev "(not (${revs})) and ((${revs})::)" | wc -l | sed -e 's/ //g'`
- > if [ $orphan -eq 0 ];
+ > children=`hg log --hidden --rev "((${revs})::) - (${revs})"`
+ > if [ -z "$children" ];
> then
> printf "# stripping: "
> prestripfile="${prefix}-pre-strip.txt"