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

adding all unversioned files (except ignored ones)

From: Dan Tenenbaum <dandante_at_gmail.com>
Date: 2006-02-13 18:45:11 CET

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 thought that
svn add * --force
would do what I want. But it adds everything, including files that I
have excluded using the svn:ignore property.

I should probably ask here if I set that property correctly; I set the
property by doing this:
svn propset svn:ignore -F svnignore .
where svnignore is a file that contains newline-separated patterns of
files to ignore. Here, in case I have screwed up royally and this will
help diagnose it, is the contents of that file:

ignore.sh
svnignore
log/*
config/*
config/environments/*
db/*.sh

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?
Thanks
Received on Mon Feb 13 18:48:46 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.