Skip to main content

How-to-update-WordPress-SVN

# How to update WordPress SVN (powr pack)


Background: our POWR Pack on wordpress is updated through wordpress’s SVN. SVN is like a jank version of git.

POWR Pack page: [https://wordpress.org/plugins/powr-pack/](https://wordpress.org/plugins/powr-pack/)

Wordpress SVN Guide: https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/

**Important warning: do not automate or rapidly push many changes to the live svn repo. WordPress people keep an eye on this and can ban our app if we abuse the system in any way. **

//First you need to clone the repo:

In your local terminal, navigate to your developer directory

RUN this:

svn co http://plugins.svn.wordpress.org/powr-pack

//Make whatever changes you need to make.

If all you need to do is update the “Tested up to” version number:



* open trunk/readme.txt
* Change “Tested up to” to the relevant version
* Increment the “Stable tag” (eg from 2.1.0 to 2.1.1)
* Add an item for “Change Log” at the bottom of the file for the corresponding stable tag from previous step

//Commit changes to SVN (the below will likely give some errors that some shit is already committed. That is normal)

svn add trunk/*

//or to add everything:

svn add * --force

// Push changes: **make sure your message is clear**

svn ci -m 'Updated tested up to version'

**<span style="text-decoration:underline;">Updating images</span>**

Images are located in /assets folder. They must be named precisely according to WP naming conventions. If images are not updating:



* Make sure you have named them correctly
* There should not be both a png and a jpg of the same file, delete the ones we are not using
* Updates to SVN can take several minutes to appear on the live wordpress page

**<span style="text-decoration:underline;">TROUBLESHOOTING</span>**

//Problem: A deleted file or folder still is showing up in SVN

EG:

svn: Commit failed (details follow):

svn: Directory '/Sites/powr/lib/wordpress_svn/powr-form-builder/tags/1.0' is missing

//Solution: To delete a file or folder, you must delete it in svn. If you manually delete it first, that's ok.

svn delete tags/1.0