Mercurial > hg-stable
diff tests/test-obsolete-bundle-strip.t @ 32701:d677bd21ee98
tests: simplify and clarify test-obsolete-bundle-strip.t a little
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 02 Jun 2017 23:05:03 -0700 |
parents | add1683cc9e6 |
children | 8b2f735f0107 |
line wrap: on
line diff
--- 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"