# Copyright (C) 2005 by Wayne Davison <wayned@samba.org>
-# This program is distributable under the terms of the GNU GPL see
+# This program is distributable under the terms of the GNU GPL (see
# COPYING).
# Test rsync handling of various delete directives.
. "$suitedir/rsync.fns"
-set -x
-
hands_setup
makepath "$chkdir"
diff -r "$chkdir/empty" "$fromdir"
+# Make sure that --delete-excluded does not dump a per-dir merge-file filter.
+cat >"$todir/filters" <<EOF
+P foo
+EOF
+touch "$todir/foo"
+
+$RSYNC -r --filter=': filters' --delete-excluded "$fromdir/" "$todir/"
+
+test -f "$todir/foo" || test_fail "rsync incorrectly elided the merge file"
+
# The script would have aborted on error, so getting here means we've won.
exit 0