{"id":938,"date":"2009-06-15T22:14:30","date_gmt":"2009-06-16T03:14:30","guid":{"rendered":"http:\/\/unitstep.net\/?p=938"},"modified":"2009-06-15T22:14:58","modified_gmt":"2009-06-16T03:14:58","slug":"problems-updating-to-wordpress-2-8-using-svn","status":"publish","type":"post","link":"https:\/\/unitstep.net\/blog\/2009\/06\/15\/problems-updating-to-wordpress-2-8-using-svn\/","title":{"rendered":"Problems updating to WordPress 2.8 using SVN"},"content":{"rendered":"
If you’re like me, you run your WordPress installation off of a SVN checkout<\/a>, making it far easier to stay up to date with new versions. In fact, using version control checkouts is an excellent way to maintain web applications running on production servers, especially if they don’t require compilation.<\/p>\n However, if you recently tried to upgrade to the latest version using the instructions at the WordPress Codex<\/a>, you likely ran into a problem with an error mesage like this:<\/p>\n This is because sometime between the release of 2.7.1 and 2.8, the URL<\/acronym> of the WordPress SVN repository changed from http:\/\/svn.automattic.com\/wordpress\/<\/strong> to http:\/\/core.svn.wordpress.org\/<\/strong>. <\/p>\n <\/p>\n To properly update WordPress after this change in the SVN repository location, we need to first run the svn sw –relocate<\/em><\/a> command to relocate<\/em> or point the checkout to the new repository URL:<\/p>\n Note that we are just changing the checkout’s repository from the old one to the new one – we aren’t yet pointing to the new<\/em> version. (Note – this assumes you are currently running version 2.7.1)<\/p>\n After this, we can now we can switch to the new version.<\/p>\n Additionally, it’s worthwhile to run an Note that this overall process has two steps – first pointing the checkout to the new repository URL<\/acronym>, without switching to the new version, and then switching to the new version. I am not sure if you have to do it in two steps like this, but I can confirm this worked for me, and judging by the instructions in the SVN documentation<\/a>, this is likely the correct way.<\/p>","protected":false},"excerpt":{"rendered":" If you’re like me, you run your WordPress installation off of a SVN checkout, making it far easier to stay up to date with new versions. In fact, using version control checkouts is an excellent way to maintain web applications running on production servers, especially if they don’t require compilation. However, if you recently tried […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[79,251,25],"tags":[466,355,415],"_links":{"self":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/938"}],"collection":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/comments?post=938"}],"version-history":[{"count":5,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/938\/revisions"}],"predecessor-version":[{"id":943,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/posts\/938\/revisions\/943"}],"wp:attachment":[{"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/media?parent=938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/categories?post=938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitstep.net\/wp-json\/wp\/v2\/tags?post=938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}$ svn sw http:\/\/core.svn.wordpress.org\/tags\/2.8\/ . \r\nsvn: 'http:\/\/core.svn.wordpress.org\/tags\/2.8\/'\r\nis not the same repository as\r\n'http:\/\/svn.automattic.com'<\/code><\/pre>\n
The fix<\/h2>\n
svn sw --relocate http:\/\/svn.automattic.com\/wordpress\/tags\/2.7.1\/ http:\/\/core.svn.wordpress.org\/tags\/2.7.1\/ .<\/code><\/pre>\n
svn sw http:\/\/core.svn.wordpress.org\/tags\/2.8\/ .<\/code><\/pre>\n
svn up<\/code> after this, just to make sure externals (like Akismet) are properly updated as well.<\/p>\n