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

Re: adding all unversioned files (except ignored ones)

From: Matthew Willis <mwillis_at_ecornell.com>
Date: 2006-02-14 04:14:37 CET

On Feb 13, 2006, at 6:41 PM, Ryan Schmidt wrote:

> On Feb 12, 2006, at 03:38, Dan Tenenbaum wrote:
>
>> So, the question is how to automatically add to the repository all
>> unversioned files that do not match any of the patterns in the
>> svn:ignore property. It would also be nice if I could see a list of
>> such files before doing the add, in case there is stuff that should
>> not be added.
>>
>> I looked at several of the GUI svn clients (svnX, jsvn, rapidsvn,
>> etc.) and they didn't seem to be able to do this either. Can anyone
>> help?
>
> You would need to write or find a script that does this. It's not
> built-in. (At least, not built into the official code. You could
> check the contrib directory...)
>

I often use the following:

svn status -u | grep "?" | awk '{print $2}' | while read i ; do svn
add "$i" ; done

-lilmatt

--
Matthew Willis
eCornell

  • application/pkcs7-signature attachment: smime.p7s
Received on Tue Feb 14 04:15:34 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.