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

Re: Ignoring files and directory

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-01-12 06:45:53 CET

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
Received on Fri Jan 12 06:46:15 2007

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.