Mercurial > hg > mercurial-source
changeset 33464: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 | e696f597d02f |
files | tests/test-obsolete-bundle-strip.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-obsolete-bundle-strip.t +++ b/tests/test-obsolete-bundle-strip.t @@ -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"