[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: Saulius Grazulis <grazulis_at_akl.lt>
Date: 2006-02-14 01:36:51 CET

On Sunday 12 February 2006 04:38, Dan Tenenbaum wrote:

> Periodically I would like to add all unversioned files to the
> repository (excluding files matching patterns set in the svn:ignore
> property). I don't want to have to remember every new file (some of
> them are generated by other programs) and add it manually.

I have written two small shell scripts for myself -- one to add all
unversioned files, and another to delete missing files. Have a look, maybe
they help you.

==> svnaddunknown <==
#!/bin/sh

svn add \
    `svn status | awk '/^\?/{print $2}'` \
${1+"$@"}

==> svndelmissing <==
#!/bin/sh

svn del \
    `svn status | awk '/^\!/{print $2}'` \
${1+"$@"}

-- 
Saulius Gražulis
Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)
tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366



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

Received on Tue Feb 14 08:29:40 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.