svn status does not have any filtering features yet (that'd be cool),
so you can try this not necessarily portable bash (dash) command
$ svn add $( svn status | grep "^?" | cut -c 8- )
in case you want to do a revert, or some other command that does not
accept more than 1 parameter, you can try :
$ for F in $( svn status | grep "^M" | cut -c 8- )
> do
> svn revert $F
> done
in case it does not work for your platform, i have the following
versions installed as provided by kubuntu 7.10
marcgc_at_lasercontroller $ bash --version
GNU bash, version 3.2.25(1)-release (i486-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
marcgc_at_lasercontroller $ cut --version
cut (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by David Ihnat, David MacKenzie, and Jim Meyering.
marcgc_at_lasercontroller $
2008/1/14, Ryan Schmidt <subversion-2007b_at_ryandesign.com>:
> On Jan 14, 2008, at 05:04, Thufir wrote:
>
> > How can I use "svn add" to add the following in one go?
> >
> > thufir_at_arrakis ~/hasmanythrough $ svn status
> > ? app/views/shared
> > ? app/views/layouts/streamlined.rhtml
> > ? vendor/plugins/streamlined
> > ? public/overlib
> > ? public/windows_js
> > ? public/images/streamlined
> > ? public/javascripts/rico_corner.js
> > ? public/javascripts/streamlined.js
> > ? public/stylesheets/as_style.css
> > ? public/stylesheets/menu.css
> > ? public/stylesheets/streamlined.css
> > thufir_at_arrakis ~/hasmanythrough $
>
> svn add app/views/shared app/views/layouts/streamlined.rhtml \
> vendor/plugins/streamlined public/overlib public/windows_js \
> public/images/streamlined public/javascripts/rico_corner.js \
> public/javascripts/streamlined.js public/stylesheets/as_style.css \
> public/stylesheets/menu.css public/stylesheets/streamlined.css
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-14 12:28:13 CET