Last year I’ve released several WordPress plugins for the Plugin Directory. I was using a very old, not graphical program to update all the plugins and something strange happened: the file structure for all the plugins was messed up so it was not possible to add plugins on the fly via the normal install procedure.
Therefore, I’m going to tell you something about the file structure of subversion so you can easily maintain your plugin on the subversion repository.
There are three folders that will help separate development versions from stable versions.
Branches
This is where the previous versions are stored. For example: you are maybe working on version 1.2 in Trunk but you could have a subdirectory for the development of version 1.1 in branches. This is done to restore bugs or security reasons.
Tags
When the plugin is ready for release, copy the files into a sub-directory in the tags folder. The name of the sub-directory is the version name.
Trunk
This is where the files for your latest version are stored. This is most likely the bleeding edge version of your plugin.
With this knowlegde I can build my own imaginary folder/file structure for a wordpress plugin:
- WordPress-YDD-Plugin
- Branches
- 1.0.0
- wordpress-ydd-plugin.css
- wordpress-ydd-plugin.php
- etc.
- 1.1.0
- wordpress-ydd-plugin.css
- wordpress-ydd-plugin.php
- etc.
- 1.0.0
- Tags
- 1.0.0
- 1.1.0
- wordpress-ydd-plugin.css
- wordpress-ydd-plugin.php
- etc.
- Trunk
- wordpress-ydd-plugin.css
- wordpress-ydd-plugin.php
- etc.
- Branches
I’m searching for a good subversion client on Mac. Which one do you guys recommend?




