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

Re: svn add *

From: marc gonzalez-carnicer <carnicer.lists_at_gmail.com>
Date: Mon, 14 Jan 2008 12:50:05 +0100

yeah, cool. whatever :) any of these hacks is hard to apply unless you
are a bash freak and want to read the sed and/or cut manuals. and
besides, these solutions are not complete, for example, it's hard to
make them valid for server information, or for properties, etc.

2008/1/14, Ryan Schmidt <subversion-2007b_at_ryandesign.com>:
>
> Or perhaps you were looking for:
>
> svn status | sed -n s/^\?//p | xargs svn add

really, don't you think it'd be nice to have an svn status option /
set of options that would allow to filter the svn status output.

something like :

$ svn status --filter 'MA,U' #the comma separates WC from repo filter
M a.txt
M b.txt
A c.txt
 U d.txt

or any other syntax (defining it would not be trivial). anyhow, all
the clients have implemented the code to parse svn status output. but
the svn status program has the information, there's no need to parse
anything

$ svn status --filter-no-status-info 'MA' # don't display the status
a.txt
b.txt
c.txt

this would allow to use commands like :

$ svn revert $( svn status --filter-no-status-info 'MA' )

an useful command when an ill svn merge command is applied (wrong
revisions, etc). which would work even if properties have been
changed.

---------------------------------------------------------------------
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:50:36 CET

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.