You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jim Correia <ji...@pobox.com> on 2005/07/24 15:06:28 UTC
svn commit --non-recursive dir_path gives error "Cannot non-recursively commit a directory deletion"
I have a wrapper script (wraps the command line client and doesn't
use language bindigns) that I use for certain operations because I
want to ensure that the commit only happens on the passes paths and
doesn't recursively process directories. The script, at a high level,
does
At a high level, the script writes the paths to a temp file, and runs
svn commit --non-recursive --targets temp_file
Suppose one path is a directory that has had a propchange (and I want
that propchange to be committed, but not other pending changes in
that directory's children). --non-recursive is necessary here.
Suppose another path is a directory that has been deleted - --non-
recursive errors out here. (These changes ought to be part of the
same change set. Using the language bindings isn't really an option
here - it adds all sorts of complexity to a simple wrapper.)
So to my question...
Is there any reason why
svn commit --non-recursive dir_path
generates that error? One the one hand, I can see the software saying
that I asked it to do something that didn't make sense, or that it
couldn't do. OTOH, in my usage pattern it is necessary to pass this
flag, and I can't see that anything else would be expected. It is
impossible to remove a directory node without removing its children
and (ignoring implementation details) it doesn't feel like a
recursive operation anyway - just feels like cutting a single node
out of the tree.
Would it be possible to patch the software (I can investigate writing
the patch, but I am not an expert on the svn source) such that
svn commit dir_path
and
svn commit --non-recursive dir_path
simply do the same thing without erroring out?
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn commit --non-recursive dir_path gives error "Cannot non-recursively commit a directory deletion"
Posted by Jim Correia <ji...@pobox.com>.
On Jul 24, 2005, at 11:06 AM, Jim Correia wrote:
> I have a wrapper script
In fact, the wrapper script is irrelevant since the same problem
occurs when trying to commit a directory deletion and some other non-
recursive commit in the same revision.
svn commit --non-recursive dir_with_prop_change deleted_dir
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org