check final repository state in test_histedit_fold_add_delete
diff --git a/regress/cmdline/histedit.sh b/regress/cmdline/histedit.sh
index dc2761f..1999e16 100755
--- a/regress/cmdline/histedit.sh
+++ b/regress/cmdline/histedit.sh
@@ -1425,6 +1425,16 @@ test_histedit_fold_add_delete() {
ret="$?"
if [ "$ret" != "0" ]; then
diff -u $testroot/stdout.expected $testroot/stdout
+ test_done "$testroot" "$ret"
+ return 1
+ fi
+
+ got tree -r $testroot/repo epsilon > $testroot/stdout
+ echo "zeta" > $testroot/stdout.expected
+ cmp -s $testroot/stdout.expected $testroot/stdout
+ ret="$?"
+ if [ "$ret" != "0" ]; then
+ diff -u $testroot/stdout.expected $testroot/stdout
fi
test_done "$testroot" "$ret"
}