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

Re: svn:ignore and svn add *

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 13 Feb 2008 15:31:24 -0500

On Feb 13, 2008 3:23 PM, Marcelo de Moraes Serpa <celoserpa_at_gmail.com> wrote:

> I have a directory tree like this:
>
> bin/
> buildout.cfg
> buildout.cfg.old
> develop-debug/
> develop-products/
> eggs/
> parts/
> wiki/
> bootstrap.py
> datatransp.ldif
> develop-eggs
> downloads
> EXTERNALS.txt
> products/
> src/
> var/
>
> After some hours working, I want to add everything I added or modified
> inside these dirs except for:
> bin/
> develop-debug/
> eggs/
> parts/
> wiki/
> var/
>
> So, what I did was to "svn propedit svn:externals . " and added this to the
> list:
> bin/
> develop-debug/
> eggs/
> parts/
> wiki/
> var/
>
> However, when I run svn add *, all these dirs and its sub-contents get added
> to the repository. What am I doing wrong?

Your shell is expanding the asterisk, so svn sees:

svn add dir1 dir2 file1 file2

When svn is passed an explicit list of file/directory names,
svn:ignore and global-ignores are overridden - I think the assumption
is that since you are explicitly passing the name to SVN, you really
do want it added, regardless of ignores.

> Also, is there a way to undo the last operations you did on a working copy
> (in this case, I added a bunch of unecessary data)?

See svn help revert

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-13 21:31:44 CET

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.