[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: Palmer Eldritch <eldritch.palmer_at_gmail.com>
Date: 2005-12-13 11:45:39 CET

That does indeed look like the problem I'm having.
Thanks for the link.

On 12/13/05, Kjell Harald Andersen <k.h.andersen@chipcon.com> wrote:
>
> I looked through the release notes for svn 1.3-rc4, and they claimed to
> have solved an issue regarding svn add and svn:ignore.
> Have a look at http://subversion.tigris.org/issues/show_bug.cgi?id=2243
> Maybe that's the solution to your problem. Haven't read it through myself
> yet, so I wouldn't know.
>
> Kjell
>
>
>
> ------------------------------
> *From:* Palmer Eldritch [mailto:eldritch.palmer@gmail.com]
> *Sent:* 13. desember 2005 10:31
> *To:* Gavin Lambert
> *Cc:* users@subversion.tigris.org
> *Subject:* Re: svn add ignores svn:ignore
>
>
> I tried this as a workaround
>
> svn add . --force
>
> but this exhibits the same behavior.
> I haven't got a clue how svn add is implemented, but if the problem is
> with globbing, shouldn't this have avoided the problem?
>
>
>
> On 12/12/05, Gavin Lambert <gavinl@compacsort.com> wrote:
> >
> > 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
> > Linux.
> >
> >
>
Received on Tue Dec 13 11:49:16 2005

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.