Using a trunk@r1498689, in a trunk@r1498689 wc:
[[[
% touch foo
% $svn st foo gen-make.opts
? foo
I gen-make.opts
% $svn cleanup --remove-ignored --remove-unversioned foo
subversion/svn/cleanup-cmd.c:112,
subversion/libsvn_client/cleanup.c:238,
subversion/libsvn_client/cleanup.c:107,
subversion/libsvn_wc/cleanup.c:218,
subversion/libsvn_wc/cleanup.c:149,
subversion/libsvn_wc/cleanup.c:57: (apr_err=SVN_ERR_WC_NOT_WORKING_COPY)
svn: E155007: '/home/danielsh/src/svn/t1/foo' is not a working copy directory
zsh: exit 1 $SVN cleanup --remove-ignored --remove-unversioned foo
% $svn cleanup --remove-ignored --remove-unversioned gen-make.opts
subversion/svn/cleanup-cmd.c:112,
subversion/libsvn_client/cleanup.c:238,
subversion/libsvn_client/cleanup.c:107,
subversion/libsvn_wc/cleanup.c:218,
subversion/libsvn_wc/cleanup.c:149,
subversion/libsvn_wc/cleanup.c:57: (apr_err=SVN_ERR_WC_NOT_WORKING_COPY)
svn: E155007: '/home/danielsh/src/svn/t1/gen-make.opts' is not a working copy di
rectory
zsh: exit 1 $SVN cleanup --remove-ignored --remove-unversioned gen-make.opts
]]]
I expected each of the cleanup invocations to remove the file given to it as target.