Mar
22
WordPress Update Fun
March 22, 2017 | Leave a Comment
Time to update WordPress to 4.7.3. I used the SVN method.
I was using an older version of SVN and required me to update the local checkout.
$ svn upgrade
Fine. Did it.
$ svn sw https://core.svn.wordpress.org/tags/4.7.3/ . svn: E155025: 'svn switch' does not support switching a working copy to a different repository svn: E155025: 'http://core.svn.wordpress.org/tags/4.4' is not the same repository as 'https://core.svn.wordpress.org'
What?
$ svn info Path: . Working Copy Root Path: /.../blogs/chwalisz URL: http://core.svn.wordpress.org/tags/4.4 Relative URL: ^/tags/4.4 Repository Root: http://core.svn.wordpress.org Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd Revision: 36122
Smells like I need to relocate, like I did when they moved from the automattic svn repo.  See codex Relocating From The Old svn.automattic.com
First see what it SHOULD be:
$ svn co https://core.svn.wordpress.org/tags/4.7.3 new-chwalisz-test AÂ Â new-chwalisz-test/index.php AÂ Â new-chwalisz-test/wp-config-sample.php ... ^new-chwalisz-test$ svn info Working Copy Root Path: /.../new-chwalisz-test URL: https://core.svn.wordpress.org/tags/4.7.3 Relative URL: ^/tags/4.7.3 Repository Root: https://core.svn.wordpress.org Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd Revision: 40218
Note the change:
Repository Root: http://core.svn.wordpress.org
to
Repository Root: https://core.svn.wordpress.org
Try?
svn switch --relocate http://core.svn.wordpress.org/tags/4.7.3 https://core.svn.wordpress.org/tags/4.7.3/
BUT — svn 1.7 supports the relocate option.
so maybe….
instead of
$ svn relocate http://svn.company.com/repos/trunk
we use
$ svn relocate https://core.svn.wordpress.org/tags/4.7.3/
Let’s try!
/blogs/chwalisz$ svn relocate https://core.svn.wordpress.org/tags/4.4 /blogs/chwalisz$ svn info Path: . Working Copy Root Path: /.../blogs/chwalisz URL: https://core.svn.wordpress.org/tags/4.4 Relative URL: ^/tags/4.4 Repository Root: https://core.svn.wordpress.org Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd Revision: 36122
So does it blend?
$ svn sw https://core.svn.wordpress.org/tags/4.7.3/ .
NOW we have some conflicts. I did not mark as resolved – maybe should have…
/blogs/chwalisz/wp-content/themes$ svn st D C twentyten/404.php > local file unversioned, incoming file add upon switch D C twentyten/archive.php > local file unversioned, incoming file add upon switch ... D twentyten/images/headers D twentyten/images/headers/berries-thumbnail.jpg ... Summary of conflicts: Tree conflicts: 138 /blogs/chwalisz/wp-content/themes$ cd twentyten/ /blogs/chwalisz/wp-content/themes/twentyten$ svn st D C 404.php > local file unversioned, incoming file add upon switch D C archive.php > local file unversioned, incoming file add upon switch ... D images/headers D images/headers/berries-thumbnail.jpg ... Summary of conflicts: Tree conflicts: 30 /blogs/chwalisz/wp-content/themes/twentyten$ svn revert --recursive . Reverted 'archive.php' Reverted 'single.php' ... Reverted 'images/headers/berries.jpg' Reverted 'images/headers/path.jpg' ... /blogs/chwalisz/wp-content/themes/twentyten$ svn st /blogs/chwalisz/wp-content/themes/twentyten$ <nothing!!!>
Repeat until bored…
svn st is now clean, except for my manually edited themes.
Now visit the usual wp-admin/upgrade.php URL
Done!
Comments
You must be logged in to post a comment.