{"id":624,"date":"2010-01-11T20:05:54","date_gmt":"2010-01-11T19:05:54","guid":{"rendered":"http:\/\/sickel.net\/blogg\/?p=624"},"modified":"2010-01-30T12:24:36","modified_gmt":"2010-01-30T11:24:36","slug":"svn-copy-problem","status":"publish","type":"post","link":"https:\/\/sickel.net\/blogg\/?p=624","title":{"rendered":"svn copy problem"},"content":{"rendered":"<p>Being a bit to eager when cleaning up a repository, I managed to remove a file too many from revision control. I still had the file sitting around, so I just readded it &#8211; but then the revision history had gone&#8230; I found a quite promising post at <a href=\"http:\/\/markphip.blogspot.com\/2007\/01\/how-to-undo-commit-in-subversion.html\">Markphip&#8217;s blog<\/a>, but when I tried to follow that description, <\/p>\n<p>svn copy -r498  -m &#8220;Restore history&#8221; file<br \/>\n:\/\/\/home\/users\/radioecology\/svn\/AMAPds\/branches\/mobilweb\/WaterfallApplet.java<br \/>\nfile:\/\/\/home\/users\/radioecology\/svn\/AMAPds\/branches\/mobilweb<\/p>\n<p>(revision 499 was the one with the unfortunate remove) svn told me that &#8220;svn: Unable to find repository location for &#8216;file:\/\/\/home\/users\/radioecology\/svn<br \/>\n\/AMAPds\/branches\/mobilweb\/WaterfallApplet.java&#8217; in revision 498&#8221; <\/p>\n<p>No idea why, it definiately was there..<\/p>\n<p>I am using Syntevos SmartSVN foundation as a front end on windows, tried to do a Modify -> copy within repository &#8211; that did not work either. At last I came across the mention of <a \"href=http:\/\/stackoverflow.com\/questions\/361840\/recovering-from-an-unfortunate-svn-copy\">peg revisions<\/a> and one<br \/>\n&#8221; svn cp  file:\/\/\/home\/users\/radioecology\/svn\/AMAPds\/branches\/mobilweb\/WaterfallApplet.java@498  file:\/\/\/home\/users\/radioecology\/svn\/AMAPds\/branches\/mobilweb\/ -m &#8220;Restore&#8221;<br \/>\n&#8221; later and the file and history was back.No idea why the others did not work. Seems like a bit of black magic within svn &#8211; or maybe someone can explain exactly what happened.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Being a bit to eager when cleaning up a repository, I managed to remove a file too many from revision control. I still had the file sitting around, so I just readded it &#8211; but then the revision history had &hellip; <a href=\"https:\/\/sickel.net\/blogg\/?p=624\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-data"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pnVtD-a4","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=624"}],"version-history":[{"count":3,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/624\/revisions"}],"predecessor-version":[{"id":676,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=\/wp\/v2\/posts\/624\/revisions\/676"}],"wp:attachment":[{"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickel.net\/blogg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}