[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit --non-recursive dir_path gives error "Cannot non-recursively commit a directory deletion"

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-07-26 20:23:39 CEST

Jim Correia wrote:
>
> You cannot remove dir1 without also removing all of the children, so
> removing the directory with the --non-recursive flag shouldn't try to
> have special meaning, and should just remove the directory

I'm not sure whether that change would be a good thing in itself, but what I
can say is that it would not solve your problem in a general way. It would
only solve your special case:

   Change props on dir1 (non-recursive);
   delete directory tree dir2.

It would not solve this rather similar case:

   Change props on dir1 (non-recursive);
   add directory tree dir2.

To do things like that you would need to be able to specify "non-recursive" per
target rather than per command, which is an enhancement worth thinking about about.

A work-around in either case is to use a fully non-recursive command, something
like:

   svn commit -N dir1 `find dir2 -name .svn -prune -o -print`

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 26 20:24:29 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.