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

Better alternative to `svn add --force *`

From: Kalin KOZHUHAROV <kalin_at_thinrope.net>
Date: 2005-08-25 14:56:11 CEST

Hello,

I run into this situation several times already, and cannot find any
good solution so far (with the command svn client).

I hate most of my $HOME dir under subversion control and I update/commit
as I move around different machines. Problem is certain directories
often contain new files on almost every commit. To be more specific,
gaim keeps each new im conversation log in a new file like:

.gaim/logs/yahoo/my_yahoo_nick/buddy_yahoo_nick/2005-07-20.230446.txt

I have also system logs there which I don't need, so they are in
svn:ignore for the respective directories. Now the problem is that if I
run something like:

svn add .gaim/ && svn commit -m "gaim"

the add exits with an error "Already under version control"

I tried the suggested

svn add --force .gaim/ && svn commit -m "gaim"

but then all properties like svn:ignore get ignored :-) and I got all
system logs in there....

Any better solution than adding files one-by-one?

In five minutes I came up with this script that can be put as an alias,
but aren't there smarter solutions?

cd .gaim && \
for f in `svn status|grep ^?`; do [ "$f" == "?" ] || svn add $f;done

Kalin.

-- 
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 25 14:58:28 2005

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.