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

RE: svn add ignores svn:ignore

From: Gavin Lambert <gavinl_at_compacsort.com>
Date: 2005-12-12 23:19:53 CET

Quoth Palmer Eldritch <mailto:eldritch.palmer@gmail.com>:
> svn add ignores the value of svn:ignore which is fairly annoying
> I'm using svn 1.2.3 on windows 2K
> steps to reproduce the incorrect behavior:
> create an empty directory 'test'
> svn import test <repository>
> cd test
> svn checkout <repository> .
> svn propset svn:ignore *.ign .
> svn commit
> svn propget svn:ignore .
> ==> output:
> *.ign
> create files test.txt & test2.ign
> svn status
> ==> output:
> ? test.txt
> svn status --no-ignore
> ==> output:
> I test.ign
> ? test.txt
> svn add *.*
> ==> output:
> A test.ign
> A test.txt
> svn status
> ==> output:
> A test.ign
> A test.txt
> TortoiseSVN 1.2.6 build 4786 does it correctly.

It's a Linux-ism, I think. Under Linux, the * on the command line is
expanded by the shell, not the application, so svn gets the full list of
filenames. And any filename explicitly mentioned on the commandline is
added, regardless of ignore status (otherwise, how would you handle
exception cases; eg. you want to keep a single .dll file in Subversion,
even though most of the time you want to ignore them).

On Windows it's the application's responsibility to expand wildcards on
the command-line, but I imagine that all it's doing is expanding
everything blindly and then passing it to the same code that runs on

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 12 23:26:10 2005

This is an archived mail posted to the Subversion Users mailing list.