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

svn:ignore and add

From: Frank Budszuhn <mail_lists_at_budszuhn.de>
Date: 2004-08-21 14:45:58 CEST

Hi list,

I tried working with ignores in subversion and it kinda confuses me.
Here's my scenario:

(Subversion 1.0.5 on Debian Linux)

Ok, I start with a project which is under version control. It's named
myproject:

frank@zappa:~/myproject$

First I create a subdirectory named test:

frank@zappa:~/myproject$ mkdir test

I add this to the repository:

frank@zappa:~/myproject$ svn add test
A test

And check it in:

frank@zappa:~/myproject$ svn ci test -m "testing"
Adding test

Committed revision 33.

Ok, now I produce some test data:

frank@zappa:~/myproject$ cd test
frank@zappa:~/myproject/test$ touch t1.txt t2.txt
frank@zappa:~/myproject/test$ mkdir subtest
frank@zappa:~/myproject/test$ touch subtest/t1.txt subtest/t2.txt

Let's get status:

frank@zappa:~/myproject/test$ svn stat
? t1.txt
? t2.txt
? subtest

Seems ok!

Now, I want to ignore t1.txt:

frank@zappa:~/myproject/test$ svn propset svn:ignore t1.txt .
property 'svn:ignore' set on '.'

Check it:

frank@zappa:~/myproject/test$ svn stat
? t2.txt
? subtest
 M .

The property change is not yet checked in, but the status is alright.
t1.txt is no longer displayed!

Now I want to add my new files to the repository:

frank@zappa:~/myproject/test$ svn add *
A subtest
A subtest/t1.txt
A subtest/t2.txt
A t1.txt
A t2.txt

Huuuh? Shouldn't t1.txt be ignored???? Well, better try global-ignores then!

frank@zappa:~/myproject/test$ svn revert *
Reverted 'subtest'
Reverted 't1.txt'
Reverted 't2.txt'

So now I go to my ~/.subversion/config and edit it like this:

...
[miscellany]
global-ignores = t1.txt
...

And give it another shot:

frank@zappa:~/myproject/test$ svn add *
A subtest
A subtest/t2.txt
A t1.txt
A t2.txt

Ahhh, it ignores t1.txt in the subdirectory, but not in the main test
directory!

So, now come my questions:

- why doesn't svn:ignore work for me, what am I doing wrong?
- why doesn't global-ignore work on the current directory?
- what scenario is there to use svn:ignore with import? Usually I don't
have any directory to set a property on when doing an import!

Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 21 14:48:46 2004

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.