You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Andrew Ochsner <ao...@cs.stanford.edu> on 2006/05/09 15:08:35 UTC

"svn add" "svn:ignore" help

Hello:

I've tried searching to no avail for this issue, so I'm hoping someone can
help.

I'm running an automated build that needs to check in all of the folders and
files of a subdirectory.  It needs to ignore all *.zip files, so I have
added svn:ignore *.zip to the properties of this subdirectory.  There could
be new folders and files under this subdirectory, so I need to do an "svn
add"  I basically want to do a --force so it goes into each folder whether
it's versioned or not and adds the files, but I want it to still ignore the
*.zip files.  My subversion client is version 1.3.0 on Windows 2003 as well
as XP.

Example (if it looks familiar, I'm trying to get a snapshot of a Fitnesse
wiki):
In repository:
Directory (svn:ignore *.zip)
-->content.txt
-->properties.xml

In working directory:
Directory (svn:ignore *.zip)
-->content.txt
-->properties.xml
-->lots of *.zip files
-->New SubDirectory
------>content.txt
------>properties.xml
------>lots of *.zip files

What I want in the repository:
Directory
-->content.txt
-->properties.xml
-->New SubDirectory
------>content.txt
------>properties.xml

It could have many nesting subdirectories possibly.

Is there any way to do this?  To basically update the Subversion repository
to be a snapshot of a working directory (which could have new folders and
files), but ignoring a set of files?

And it needs to be scriptable (i'm using exec tasks in an ant script).

Thank you in advance
Andy O

Re: "svn add" "svn:ignore" help

Posted by Ryan Schmidt <su...@ryandesign.com>.
On May 9, 2006, at 17:08, Andrew Ochsner wrote:

> Is there any way to do this?  To basically update the Subversion  
> repository to be a snapshot of a working directory (which could  
> have new folders and files), but ignoring a set of files?

There is the svn_load_dirs.pl script which can do this, but it's  
interactive, because not all cases can be handled automatically.  
Perhaps your needs are more specialized than that general-purpose  
script; perhaps the subset that you want to handle would be  
automatable. Perhaps looking at that script, or playing with it to  
see how it behaves, would give you some ideas.



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