You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by John Lange <jo...@bighostbox.com> on 2004/07/08 04:51:13 UTC

Recursive add

How come "svn add" is not recursive and "svn add -R" throws an error
that -R is not a legitimate option for add?

Regards,

-- 
John Lange



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Recursive add

Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-07-08 at 10:13, Max Bowsher wrote:
> John Lange wrote:
> > The problem is simply that "svn add" is not recursive.
> 
> But it is.
> 
> > If I do "svn add *" in the top level of my source tree it only attempts
> > to add files in the current directory.

I'm guessing that the problem John is hitting is that the instant 'svn
add' hits a directory that's already versioned, it bails out, rather
than going into the versioned directory and hunting down more
unversioned files.  This has frustrated many users, and is fixed in the
upcoming svn 1.1 release.  In svn 1.1, I believe 'svn add --force' will
do what he wants.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Recursive add

Posted by Max Bowsher <ma...@ukf.net>.
John Lange wrote:
> The problem is simply that "svn add" is not recursive.

But it is.

> If I do "svn add *" in the top level of my source tree it only attempts
> to add files in the current directory.

$ svn co file:///svn/trunk/somedir .
Checked out revision 21.
$ mkdir foo bar
$ touch foo/1 foo/2 bar/3 bar/4
$ svn add *
A         bar
A         bar/3
A         bar/4
A         foo
A         foo/1
A         foo/2
$ 

> Any other variation of the command that I have tried results in an
> error.

So, how about showing us some copy/paste from your command line sessions.

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Recursive add

Posted by John Lange <jo...@bighostbox.com>.
The problem is simply that "svn add" is not recursive.

If I do "svn add *" in the top level of my source tree it only attempts
to add files in the current directory.

Any other variation of the command that I have tried results in an
error.

Regards,

John

On Thu, 2004-07-08 at 00:01, William Nagel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Jul 7, 2004, at 11:51 PM, John Lange wrote:
> 
> > How come "svn add" is not recursive and "svn add -R" throws an error
> > that -R is not a legitimate option for add?
> 
> 'svn add' _is_ recursive by default.  What is it you're trying to do 
> that isn't working recursively?
> 
> - -William Nagel
> 
> 
> >
> > Regards,
> >
> > -- 
> > John Lange
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
> 
> iD8DBQFA7NUSSwe0AHUdEwQRAqvYAKDYRgjS5wDhiHDOZqAn6/tTdp6zzgCggkx0
> ySrE1OYIFC+g2MXNol6fhQY=
> =X34j
> -----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Recursive add

Posted by William Nagel <bi...@stagelogic.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Jul 7, 2004, at 11:51 PM, John Lange wrote:

> How come "svn add" is not recursive and "svn add -R" throws an error
> that -R is not a legitimate option for add?

'svn add' _is_ recursive by default.  What is it you're trying to do 
that isn't working recursively?

- -William Nagel


>
> Regards,
>
> -- 
> John Lange
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFA7NUSSwe0AHUdEwQRAqvYAKDYRgjS5wDhiHDOZqAn6/tTdp6zzgCggkx0
ySrE1OYIFC+g2MXNol6fhQY=
=X34j
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org