You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by thomas Armstrong <ta...@gmail.com> on 2005/09/08 10:03:10 UTC

How to exclude a directory from SVN crontrol

Hi

I've got a project on my PC with some directories:
/home/myproject/trunk/foo1
/home/myproject/trunk/foo2
/home/myproject/trunk/foo3

And they are under SVN control.

I would like to exclude 'foo3' from SVN crontrol, and want SVN not to
update it.

Is it possible?

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


Re: How to exclude a directory from SVN crontrol

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 8, 2005, at 12:03, thomas Armstrong wrote:

> I've got a project on my PC with some directories:
> /home/myproject/trunk/foo1
> /home/myproject/trunk/foo2
> /home/myproject/trunk/foo3
>
> And they are under SVN control.
>
> I would like to exclude 'foo3' from SVN crontrol, and want SVN not to
> update it.

If foo3 is already under version control, and now you want it not to  
be, but you still want to keep the directory in your working copy,  
you can do it like this:

$ cp -rp foo3 foo3.bak
$ svn rm foo3
$ svn propset svn:ignore foo3 .
$ svn ci -m "Removing foo3 from version control."
$ mv foo3.bak foo3
$ svn st
$

foo3 is now still in the working copy, but is no longer under version  
control. The svn:ignore property will prevent the directory from  
annoying you in the status list.



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