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

Re: Recursive add

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-07-08 18:58:18 CEST

John Lange wrote:
> On Thu, 2004-07-08 at 10:49, Campbell, Matthew A wrote:
>> but even if I can I'm not sure I'd consider this a bug,
>> per se.
>
> Perhaps not a bug. I would submit that this behaviour does not match
> most peoples definition of recursion. To preserve the existing
> functionality (if thats important) perhaps the "-R" flag could be
> activated for "add" meaning "recurse all subdirectories even ones
> currently under version control".

"svn add" is defined to take a list of things to add.
If you give it (via "*") something already under version control, it thinks you have made a mistake.

Recursion controls whether it adds directories, or directories and all their contents.

This meets my expectations of recursion.

("Do what I tell you, not guess that I wanted you to do more")

> It also makes "svn add" appear to operate quite differently than "svn
> commit" which does recurse all directories.

Well, "svn add" is already different to "svn commit".
"svn commit" (just that, alone on a command line) means something.
"svn add" (without any things to operate on) does not.

> If I'm not mistaken, doesn't "cvs add" recurse all directories (its been
> a while)?

You are mistaken. It does not. (In fact, it behaves exactly like subversion in this respect.)

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 8 18:58:48 2004

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

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