svn | Blog | Limilabs https://www.limilabs.com/blog Using Limilabs .net components Tue, 10 Nov 2015 15:50:43 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 How to permanently remove a SVN folder https://www.limilabs.com/blog/how-to-permanently-remove-svn-folder https://www.limilabs.com/blog/how-to-permanently-remove-svn-folder#comments Wed, 07 Oct 2009 10:04:34 +0000 http://www.limilabs.com/blog/?p=168 Recently I wanted to permanently remove a folder from Subversion repository. Basically it was a folder with large amount of test data (email messages used for unit testing our Mail.dll email component), and I decided to rename every single file inside. Doing it with ‘SVN rename…’ for 3000 items was out of question. The solution […]

The post How to permanently remove a SVN folder first appeared on Blog | Limilabs.

]]>
svnRecently I wanted to permanently remove a folder from Subversion repository.

Basically it was a folder with large amount of test data (email messages used for unit testing our Mail.dll email component), and I decided to rename every single file inside. Doing it with ‘SVN rename…’ for 3000 items was out of question.

The solution was quite simple:

First dump the whole repository:
svnadmin dump "D:\My projects\SVN Data" > dumpfile.txt

Second filter the folder I wanted to remove:
svndumpfilter exclude Mail\eml < dumpfile.txt > filtered-dumpfile.txt

Then delete and create a new repository:
Delete repository
svnadmin create "D:\My projects\SVN Data"

Finally load the filtered dump into SVN repository:
svnadmin load "D:\My projects\SVN Data" < filtered-dumpfile.txt

You can also use this procedure for upgrading SVN repository version.

The post How to permanently remove a SVN folder first appeared on Blog | Limilabs.

]]>
https://www.limilabs.com/blog/how-to-permanently-remove-svn-folder/feed 5