views:

476

answers:

3

I have a SVN repository that has stuff from Bin directory (.exe, .dll, .pdb). I would like to clean up the repository to erase those file and to prevent them to come back.

  1. How can I clean the repository (without going file by file, directory by directory)?
  2. How can I prevent to add these file? (In SVNTortoise I have added a Global ignore pattern to *.exe *.suo *.pdb /Debug/* but it doesn't seem to work fine.
A: 

Those files weren't supposed to be in the repository. Only put in what you need to build the executable (source code + makefile).

I would suggest that you place the source and the executable in different directories, and only checkin those in the source directory.

For the deletion part, don't bother. Just create a new revision without those files.

Bo Tian
+4  A: 
Mercer Traieste
screenshots FTW
seth
+2  A: 

As the original question was in fact how to clean up the repository (and there may be valid reasons to do so: legal, or repository size blowing up), I would like to add that the only way this can be done is by dumping a repository to a file (svn dump), filtering the contents with 'svndumpfilter' and reloading it into a new repository:

jeroenh