tests: simplify and clarify test-obsolete-bundle-strip.t a little
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 02 Jun 2017 23:05:03 -0700
changeset 32681 d677bd21ee98
parent 32680 add1683cc9e6
child 32682 e696f597d02f
tests: simplify and clarify test-obsolete-bundle-strip.t a little
tests/test-obsolete-bundle-strip.t
--- 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"