{"id":10,"date":"2008-03-18T14:00:38","date_gmt":"2008-03-18T18:00:38","guid":{"rendered":"http:\/\/hoolihan.net\/blog-tim\/?p=10"},"modified":"2008-03-18T15:08:30","modified_gmt":"2008-03-18T19:08:30","slug":"svn-repository-fix","status":"publish","type":"post","link":"http:\/\/hoolihan.net\/blog-tim\/2008\/03\/18\/svn-repository-fix\/","title":{"rendered":"SVN Repository fix"},"content":{"rendered":"<p>I was fixing several subversion repositories.  I didn&#8217;t have the standard branches, tags, trunk structure set up.  Here&#8217;s  a script to help with that.<\/p>\n<p>Use it like&#8230;  sh ~\/.svn-fix.sh https:\/\/mysvnserver.net\/svn\/hello-project trunk<\/p>\n<p><code>#!\/bin\/bash<br \/>\n$repo=\"$1\"<br \/>\n$dest=\"$2\"<br \/>\nentries=`svn list $repo | grep -v $dest`<\/code><\/p>\n<p><code>svn mkdir $repo\/$dest<br \/>\nfor d in $entries<br \/>\ndo<\/code><\/p>\n<p><code>svn move $repo\/$d $repo\/$dest\/ -m \"moved into $dest\"<br \/>\ndone<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was fixing several subversion repositories. I didn&#8217;t have the standard branches, tags, trunk structure set up. Here&#8217;s a script to help with that. Use it like&#8230; sh ~\/.svn-fix.sh https:\/\/mysvnserver.net\/svn\/hello-project trunk #!\/bin\/bash $repo=&#8221;$1&#8243; $dest=&#8221;$2&#8243; entries=`svn list $repo | grep -v $dest` svn mkdir $repo\/$dest for d in $entries do svn move $repo\/$d $repo\/$dest\/ -m &#8220;moved [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}