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:
http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.3
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