[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: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Sat, 13 Sep 2008 18:19:43 -0500

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".

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-14 01:20:33 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.