{"id":168,"date":"2009-10-07T12:04:34","date_gmt":"2009-10-07T10:04:34","guid":{"rendered":"http:\/\/www.limilabs.com\/blog\/?p=168"},"modified":"2015-11-10T17:50:43","modified_gmt":"2015-11-10T15:50:43","slug":"how-to-permanently-remove-svn-folder","status":"publish","type":"post","link":"https:\/\/www.limilabs.com\/blog\/how-to-permanently-remove-svn-folder","title":{"rendered":"How to permanently remove a SVN folder"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2009\/10\/svn.png\" alt=\"svn\" title=\"svn\" width=\"190\" height=\"166\" class=\"alignleft size-full wp-image-175\" \/>Recently I wanted to <strong>permanently remove a folder from Subversion<\/strong> repository.<\/p>\n<p>Basically it was a folder with large amount of test data (email messages used for unit testing our <a href=\"\/mail\">Mail.dll email component<\/a>), and I decided to rename every single file inside. Doing it with &#8216;SVN rename&#8230;&#8217; for 3000 items was out of question.<\/p>\n<p>The solution was quite simple:<\/p>\n<p>First <strong>dump <\/strong>the whole repository:<br \/>\n<code>svnadmin dump \"D:\\My projects\\SVN Data\" &gt; dumpfile.txt<\/code><\/p>\n<p>Second <strong>filter <\/strong>the folder I wanted to remove:<br \/>\n<code>svndumpfilter exclude Mail\\eml &lt; dumpfile.txt &gt; filtered-dumpfile.txt<\/code><\/p>\n<p>Then <strong>delete and create<\/strong> a new repository:<br \/>\n<code>Delete repository<br \/>\nsvnadmin create \"D:\\My projects\\SVN Data\"<br \/>\n<\/code><\/p>\n<p>Finally <strong>load <\/strong>the filtered dump into SVN repository:<br \/>\n<code>svnadmin load \"D:\\My projects\\SVN Data\" &lt; filtered-dumpfile.txt<\/code><\/p>\n<p>You can also use this procedure for <strong>upgrading SVN repository version<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8216;SVN rename&#8230;&#8217; for 3000 items was out of question. The solution [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[55],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-tools","tag-svn"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/168"}],"collection":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":6,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":4985,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/168\/revisions\/4985"}],"wp:attachment":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}