[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: Jim Correia <jim.correia_at_pobox.com>
Date: 2005-07-26 20:31:06 CEST

On Jul 26, 2005, at 2:23 PM, Julian Foad wrote:

> 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.

I hadn't thought about that particular case, but it is a gotcha to
this proposal.

> 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.

I'm not even sure what the syntax would be for the command line or
the --targets file. Do you have any ideas?

> 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`

  I see how that works around the cannot recursively add problem. But
I don't see how it solves my original problem of needing to non-
recursively commit a propchange and a delete in a single revision. Am
I missing something?

Jim

---------------------------------------------------------------------
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:31:48 2005

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