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

Re: ignoring a directory named spool

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-03-06 10:26:29 CET

On Mar 6, 2006, at 01:09, Steve Williams wrote:

>> I have source tree that has a directory in it named "spool". I'd
>> like to
>> ignore this directory using global-ignores or svn:ignore, but I'm not
>> having any luck.
>> The spool directory in the tree makes it hard to ignore file
>> patterns,
>> so global-ignores seems to be out. It contains a lot of files with
>> timestamp suffixes and such. And when I try:
>> svn propset svn:ignore spool
>> I get
>> svn: Explicit target required ('spool' interpreted as prop value)
>> clue bat, please.
> The biggest clue-bat is to try "svn help propset". This will tell
> you, along with the above error message, that you omitted to
> provide a value for the property, so it is taking "spool" to the
> property value, and therefore there is no path provided.
> Try this
> svn propset svn:ignore "yes" spool

Um... no. The value of svn:ignore is the list of file patterns to
ignore. See:


So you have two options, depending on whether you want the spool
directory itself to be in version control and have its contents
ignored, or whether you want the directory itself ignored as well.

If you want the former, create the directory, add it, then set the
svn:ignore property of that directory to '*' to ignore everything in it.

$ svn mkdir spool
$ svn propset svn:ignore '*' spool
$ svn ci -m 'Adding "spool" and ignoring its contents.'

If you want the latter, do not add the directory, but rather set the
svn:ignore property of the parent directory to 'spool'.

$ mkdir spool
$ svn propset svn:ignore 'spool' .
$ svn ci -m 'Ignoring a directory called "spool".'

If you had already added the spool directory but now realize you did
not want to, but want to preserve its contents, you can fix it this way:

$ svn export spool spool-tmp
$ svn rm spool
$ svn ci -m 'Removing inadvertently added directory "spool".'
$ mv spool-tmp spool
$ svn propset svn:ignore 'spool' .
$ svn ci -m 'Ignoring a directory called "spool".'

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 6 10:31:47 2006

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.