Can i do plugin commits directly from a plugin folder inside an installation using the Trunk SVN

I run a WordPress checkout of trunk, a branch, or a tag. This way I can switch WordPress versions easily:

svn sw http://svn.automattic.com/wordpress/trunk
svn sw http://svn.automattic.com/wordpress/tags/3.1

In wp-content/plugins I have a trunk checkout for each of my plugins:

cd wp-content/plugins
svn co http://plugins.svn.wordpress.org/stats/trunk/ stats

I do my work on the stats plugin (updating the changelog in the readme), then I commit directly from there:

emacs stats.php readme.txt
svn di stats.php readme.txt
svn ci stats.php readme.txt -m "stats: fixed issue with SSL"

When it’s time to push a new version, I copy from trunk to the new tag:

svn cp http://plugins.svn.wordpress.org/stats/trunk/ http://plugins.svn.wordpress.org/stats/tags/4.2.1/ -m "stats: tag 4.2.1"

Finally I bump the stable tag in the readme and commit that to trunk.

emacs readme.txt
svn di readme.txt
svn ci readme.txt -m "stats: bump stable tag to 4.2.1"

I do all of this in Linux or Mac. In my former life as a Windows user, I’d SSH (PuTTY) into a Linux box or (last resort) virtualize Linux.

Leave a Comment