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

Re: Problems with propset svn:ignore

From: N D <niranjan8712_at_gmail.com>
Date: Sun, 14 Sep 2008 01:35:42 +0200

Yes, instead of running this script on the build server, i will execute it
just before the svn commit operation and ignore files by using the
.cvsignore file. So ignored files wont go in the svn. :)

On Sun, Sep 14, 2008 at 1:19 AM, Ryan Schmidt <
subversion-2008c_at_ryandesign.com> wrote:

> On Sep 13, 2008, at 7:56 AM, N D wrote:
>
> I have a question on similar lines.
>> My repository has been migrated to SVN. In the migration procees all the
>> .cvsignore files are also in SVN. I have found a script:
>> #! /bin/sh
>>
>> # Scan the given directory (or current directory by default) recursively
>> and,
>>
>> # for every .cvsignore file found, tell Subversion to ignore the presence
>> in
>>
>> # that directory of any files listed in the .cvsignore file.
>>
>> # This stops Subversion from complaining about automatically generated
>> files
>>
>> # that have every right to be in the working copy, though not in the
>> repository.
>>
>> # The .cvsignore files were inherited from the days libpqxx was kept in a
>> CVS
>>
>> # repository, but they're also a lot more convenient than the way
>> Subversion
>>
>> # does this by itself.
>>
>> DIR="$1"
>>
>> if test -z "$DIR" ; then
>>
>> DIR="."
>>
>> fi
>>
>> for i in `find "$DIR" -name .cvsignore` ; do
>>
>> dir="`echo "$i" | sed -e 's|/\.cvsignore$||'`"
>>
>> svn propset svn:ignore --non-interactive --file "$i" "$dir"
>>
>> done
>>
>> I am thinking to run this script on the svn environment. I expect that all
>> the files as listed by the .cvsignore file would be ignore in future by SVN.
>> But as Andy says it 'Once an item is versioned, Subversion will not ignore
>> it.', I doubt what I expect wil really happen. Can any one comment/add/help?
>>
>
> Once an item is versioned, Subversion will not ignore it.
>
> "Ignore" only applies to items which are not in the repository.
>
> If you want an item to be ignored, do not add it to the repository.
>
> If it's already in the repository, and you want to ignore it, remove it
> from the repository first with "svn rm".
>
>
Received on 2008-09-14 01:36:12 CEST

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.