[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: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-02-14 00:41:12 CET

On Feb 12, 2006, at 03: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 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.

The asterisk is expanded by your shell before Subversion ever sees
it. Yes, if you explicitly tell Subversion what to add, it adds it,
even if it would normally have ignored it.

> 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...)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 14 00:43:24 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.