tests/test-obsolete-bundle-strip.t
changeset 32681 d677bd21ee98
parent 32680 add1683cc9e6
child 32685 8b2f735f0107
--- 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"