« Return to Thread: Ignoring files and directory

Re: Ignoring files and directory

by lightbulb432 :: Rate this Message:

| View in Thread

Thanks for your answer. My situation is very similar to what you described except for a couple of minor things. The first is I deleted the bar directory directly from the repository, so when I go to commit the project (even after putting in the ignore properties as you described), I get the following error:

Name does not refer to a filesystem directory
svn: Commit failed (details follow):
svn: Path 'bar' not present

So I went one level above the bar directory (call this directory barParent) and tried adding the word bar to barParent's svn:ignore, but it doesn't seem to work. Is there a special notation for blocking directories?

Or will I simply have to add the bar directory back to the repository (even though I don't want it there)?



Ryan Schmidt-19 wrote:
On Jan 11, 2007, at 23:28, lightbulb432 wrote:

> If I'd like to have a directory with some files in it completely  
> ignored when
> I do a general svn commit or other command, where would I set  
> svn:ignore? On
> the project, on the directory, on both files, or elsewhere?
>
> What would I set the value of that property to be...would it  
> include the
> name of the directory and the files, or just the directory (which  
> would then
> include all files within it)?

Let's say you have a working copy foo and the repository URL is $REPO.

svn checkout $REPO/foo
cd foo

And you have a directory bar inside that. And you want to ignore the  
files a and b inside that directory bar. Set the svn:ignore property  
of bar to the list of files (or patterns, actually) that you want  
ignored, separated by newlines.

echo a > /tmp/ignoreme
echo b >> /tmp/ignoreme
svn propset svn:ignore -F /tmp/ignoreme bar
rm -f /tmp/ignoreme

See this section in the book:

http://svnbook.red-bean.com/en/1.2/ 
svn.advanced.props.html#svn.advanced.props.special.ignore



--

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

 « Return to Thread: Ignoring files and directory