How to Maintain Your WordPress Plugin from a Windows Workstation using Subversion
September 18th, 2007
I’ve been asked several times for an easy introduction into WordPress Plugin maintainance via Subversion. This post is supposed to be a sequal to Things to do when you release a WordPress Plugin. Almost everyone managed to get an account on WordPress Extend. But what to do exactly when you receive that email from Matt, telling you that the SVN repository is waiting for your plugin?
These 3 easy steps assume you are the only person maintaining the plugin in question. As an example and for the purpose of this tutorial I’ll do an update on BackUpWordPress, one of my own plugins.
Prerequisites:
- Get yourself a copy of Tortoise SVN
Step one
create an empty directory on your Windows Machine, rightclick for the context menu and choose “Checkout Repository” and check out the HEAD revision by leaving the default options set.



You’ll see a dialog window, telling you what happens. Wait until it states “Completed”.
Step 2
Press Ok to close the dialog. When you look at the directory’s icon (mine is just on my desktop) you should see a green swoosh:

This means, that your local working copy of the repository is up to date. Now Let’s assume, you’ve edited you plugin somewhere else in the meantime: Copy the sourcefiles to you local working copy of your SVN-repository by dropping the contents of your plugin directory onto the trunk directory of your working copy

If you want to keep track of your plugin’s versions, create a directory under the “tags” directory, name it just as your current plugin’s version (in my case 0.3.1) and copy the plugin sourcefiles there as well.

Now you should recognize an “out of date”- exclamation mark on the directory icon for you working copy and those subdirectories that have been changed:

Step 3
Now we are ready to commit the changes to the repository. Right-click the working-copy’s directory and choose “SVN commit”:

Now that’s it! Couldn’t be easier!
Share ThisPosted by Roland Rust
File under: Wordpress Plugins
Leave a Reply
See also:
- Find Us in dutch language (January 13th, 2008)
- Plugins in action: Mini-Slides (November 19th, 2007)
- Demo Mode 1.2 released (November 18th, 2007)
- Plugins in action: Mini-Slides on timbuktoons.tv (November 17th, 2007)
- Demo Mode 1.1 released (November 9th, 2007)


September 18th, 2007 at 7:22 pm
I may be wrong on this one, but I think the better solution for tagging a revision as something is using “svn copy” (short form is “svn cp”) directly on the repository. While I am not too sure about this right now, I think it kinda creates a reference to that specific revision of the file, thus making it possible to track the svn-history-log of the tagged files.
September 18th, 2007 at 8:18 pm
hangy, that’s right. With Tortoise VN it is: > right-click somwhere on you desktop > choose repo-browser.
Within the Tortoise SVN Repository Browser right click on the “trunk” folder and choose “copy to” > enter the new tag.
But since SVN is different from CVS in that way, that it only knows about directories and files (ther are no branches as in CVS), the way described in the tutorial should work as well.
Please let me know if I am all wrog about this.
September 18th, 2007 at 10:04 pm
I guess it works perfectly well, with the small excemption that you just do not have a history-log for the tagged files.
July 1st, 2008 at 6:44 am
Great, just what I needed to submit my breadcrumbs plugin.
Just wish it were possible without polluting my machine with another program install.