{"id":5,"date":"2015-10-01T00:24:48","date_gmt":"2015-10-01T00:24:48","guid":{"rendered":"http:\/\/goodbits.ca\/?p=5"},"modified":"2016-09-27T22:54:56","modified_gmt":"2016-09-27T22:54:56","slug":"how-to-get-rid-of-unwanted-sub-directories-from-an-svn-checkout","status":"publish","type":"post","link":"https:\/\/www.goodbits.ca\/index.php\/2015\/10\/01\/how-to-get-rid-of-unwanted-sub-directories-from-an-svn-checkout\/","title":{"rendered":"How to get rid of unwanted directories from an subversion checkout"},"content":{"rendered":"<h2 class=\"p1\">The Problem<\/h2>\n<p class=\"p1\">Using svn if you&#8217;ve checked out a tree but didn&#8217;t want the entire tree how can you get rid of some of the subfolders. \u00a0This is generally a problem if there are some really big folder slowing down diff or other operations in the tree.<\/p>\n<h3 class=\"p1\">Example<\/h3>\n<p class=\"p1\">You have checked out\u00a0http:\/\/server\/trunk but there is a\u00a0gigantic folder that was checked out and you want to remove it from the checkout but not svn continues to annoy you saying that you&#8217;ve deleted it. Further if you simply delete the folder it will show as deleted every time run svn diff.<\/p>\n<pre class=\"p1\">svn co\u00a0http:\/\/server\/trunk<\/pre>\n<h3 class=\"p1\">Resulting in<\/h3>\n<pre class=\"p1\">trunk\/one\r\ntrunk\/two\r\ntrunk\/three<\/pre>\n<h2 class=\"p1\">The Solution<\/h2>\n<pre class=\"p1 \">cd\u00a0trunk\r\nrm -rf three\r\nsvn up -N three<\/pre>\n<h3>If That Doesn&#8217;t Work<\/h3>\n<pre>rm -rf three\r\nsvn update --set-depth empty three\r\n<\/pre>\n<p class=\"p1\">The folder will still be there but it will not cause problems with everyday life.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Problem Using svn if you&#8217;ve checked out a tree but didn&#8217;t want the entire tree how can you get rid of some of the subfolders. \u00a0This is generally a problem if there are some really big folder slowing down diff or other operations in the tree. Example You have checked out\u00a0http:\/\/server\/trunk but there is &hellip; <a href=\"https:\/\/www.goodbits.ca\/index.php\/2015\/10\/01\/how-to-get-rid-of-unwanted-sub-directories-from-an-svn-checkout\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to get rid of unwanted directories from an subversion checkout<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2],"tags":[5,6,4],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-development","category-svn","tag-development","tag-subversion","tag-svn"],"_links":{"self":[{"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":5,"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/posts\/5\/revisions\/40"}],"wp:attachment":[{"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.goodbits.ca\/index.php\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}