You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Simon Whittaker <si...@swbh.net> on 2006/04/21 14:12:00 UTC

svn:ignore

All,

I would like to ignore a whole directory from any changes made by the 
developers, we are using tortoisesvn on the checkout end and from what I 
understood you could use the properties and svn:ignore to ensure that 
the directory was left out. I have set svn:ignore to * and set recursive 
but the changed files are still appearing when I commit. I think I am 
probably misunderstanding the process here but would appreciate any 
guidance.

Cheers

Simon

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

Re: svn:ignore

Posted by Simon Whittaker <si...@swbh.net>.
Ryan Schmidt wrote:
> On Apr 21, 2006, at 16:12, Simon Whittaker wrote:
>
>> I would like to ignore a whole directory from any changes made by the 
>> developers, we are using tortoisesvn on the checkout end and from 
>> what I understood you could use the properties and svn:ignore to 
>> ensure that the directory was left out. I have set svn:ignore to * 
>> and set recursive but the changed files are still appearing when I 
>> commit. I think I am probably misunderstanding the process here but 
>> would appreciate any guidance.
>
> Sounds correct to me. If you have a directory "foo" and you want it to 
> be in the repository, but empty, such that any files a developer has 
> locally in "foo" do not get shown as unversioned when using svn 
> status, then this is the way to go.
>
> svn propset svn:ignore '*' foo
> svn commit -m "Ignoring the contents of 'foo'."
Perfect - thanks to all that answered

simon

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

Re: svn:ignore

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 21, 2006, at 16:12, Simon Whittaker wrote:

> I would like to ignore a whole directory from any changes made by  
> the developers, we are using tortoisesvn on the checkout end and  
> from what I understood you could use the properties and svn:ignore  
> to ensure that the directory was left out. I have set svn:ignore to  
> * and set recursive but the changed files are still appearing when  
> I commit. I think I am probably misunderstanding the process here  
> but would appreciate any guidance.

Sounds correct to me. If you have a directory "foo" and you want it  
to be in the repository, but empty, such that any files a developer  
has locally in "foo" do not get shown as unversioned when using svn  
status, then this is the way to go.

svn propset svn:ignore '*' foo
svn commit -m "Ignoring the contents of 'foo'."

Note that if you had already added items in the directory and  
committed them, then yes, changes in those files will continue to  
show up in "svn status". You can "svn remove" them if you like, to  
remove them from the repository now.


If, on the other hand, you don't want the directory itself in the  
repository, you would not "svn add" it, and you would instead set the  
"svn:ignore" property of the parent directory to "foo".

svn propset svn:ignore foo .
svn commit -m "Ignoring any item 'foo' in this directory."

And again, if you were converting from the former approach to the  
latter, you would first have to "svn remove" the foo directory from  
the repository.



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