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

Re: Using svn in a unix pipe

From: mike nicholaides <mike.nicholaides_at_gmail.com>
Date: 2006-05-02 22:23:06 CEST

I think what you want is:

svn add * --force

This will add everyfile with a status of "?"

Also, correct me if I'm wrong, but you can't "svn delete" a file
that's not under version control (i.e. any file with "?" status)

I hope this helps,
Mike

On 5/2/06, Steven Elliott <steven.s.elliott@gmail.com> wrote:
> I realize that not all command line commands can be used in a unix pipe.
>
> But it would really help me not only satisfy an itch but help in my
> development process if someone here more knowledgeable in unix could give me
> a hint.
>
> What I am trying to do is take the output of "svn st" and pipe that back
> into "svn add" or "svn del" or...
>
> I have so far got
>
> svn st | egrep "\?" | sed 's/\?\(.*\)/ \1/' | svn add
>
> So svn is outputting to egrep which is taking all the files marked "?" and
> sending that to sed to strip off the "?" (which could be "!" ..etc) which I
> would then like to send to svn add (or delete or...).
>
> Problem is the stdout is not making it to the add argument.
>
> Any help would be appreciated.
>
> Steven
>
>

--
http://ablegray.com
Received on Tue May 2 22:24:35 2006

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.