Windows WordPress Toolbox

In preparation for the first WordPress Bug Hunt this weekend Mark Jaquith has written some excellent instructions on how he “does work” on WordPress on Linux / Mac OS X.

Skippy who is one of the hosts of the bug hunt was looking for a Windows version of Mark’s cheat sheet – So here or those of you using Windows the following instructions show you how to achieve the same things.

First of all you need to install an svn client, the svn client of choice on Windows has to be TortoiseSVN which is not only a subversion client but also includes patch application functionality and visual merge tools. Once you have installed TortoiseSVN you will now be set and ready. So here is the “Working on Windows” version on Mark’s instructions:

Create a new directory on your pc to store the checkout.

Checkout the repository by right clicking on the folder and selecting “SVN checkout…” like this:

SVN Checkout menu

Enter the repository url (http://svn.automattic.com/wordpress/trunk/) in the dialogue and click on OK:

SVN Checkout dialogue

At the end of the checkout you should be presented with a dialogue like this:

SVN Checkout results

And the folder containing the checkout will now have a new icon to show that is contains a svn checkout:

SVN Folder icon

Updating your working copy of the repository is as simple as right clicking on this folder and selection “SVN update…” like this:

SVN Update menu

Making a patch for a file or the whole checkout containing you changes is as simple as right clicking on the file/folder and selecting “Create Patch” from the “Tortoise SVN” submenu available when you right click:

SVN Diff menu

You can the select the files to include in the patch in the next dialogue, before you save the patch:

SVN Diff file select

Applying a patch is as simple as selecting “Apply Patch” from the “Tortoise SVN” submenu available when you right click on the folder containing the svn checkout:

SVN Patch menu

You will then be able to see the differences contained in the patch for each file changed in the “TortoiseMerge” window that appears:

SVN Patch merging

To apply the patch if you are happy with the changes you right click on the file/files in the “Files Window” and select “Patch All”:

SVN Patch merge

If you want to search through the checkout of WordPress for a string you can use WinGrep
. Once installed it can be accessed from the right click menu on a file or folder like so:

WinGrep menu

You are then presented with the following dialogue in which you need to enter two things. Firstly you need to specify your “Search String” which here is “function the_content” and you also need to specify the “File Specification” which here is “*.php” so as to only search php files.

WinGrep search dialogue

The results are then presented like this:

WinGrep results dialogue

22 Responses to “Windows WordPress Toolbox”

  1. Awesome post. makes it so easy now.

    Thanks heaps

  2. [...] Another thing that you will need to add your plugin is a Subversion Client. I have used TortoiseSVN. You could find helpful this example: Windows WordPress Toolbox. [...]

  3. [...] inspired by posts awhile ago by Westi’s Windows WordPress toolbox and Mark’s Mac/Unix based WordPress toolbox, I give you my [...]

  4. [...] Windows WordPress Toolbox [...]

  5. [...] you can get involved in WordPress development using free available tools on windows in my post “Windows WordPress toolbox”.  Since that post I have come up with a number of useful scripts and shortcuts that I use in my [...]

  6. [...] If you feel bold enough, you can contribute to the WordPress Trac by submitting a bug report, if you find a true bug in WordPress (first, do yourself a favor and be sure that it’s a true bug and not something jiggy with your set up or hosting service.) – – If you’re a developer/programmer/coder and think you’d like to submit a patch or two for consideration – check out Mark Jaquith’s Unix WordPress Toolbox and/or Peter Westwood’s Windows WordPress Toolbox. [...]

  7. Ben Tremblay says:

    HiYa – Got here and to Mark Jaquith’s “commit” post from Trac frontpage. Here’s what I’m thinking (I’ll copy this to Mark’s blog in a minute [1]): a couple of 101-style articles on basics … Eclipse/PHP with Subversion … or maybe Aptana, not sure. Thing is I’ve mucked by way through various IDEs over the past ?what? 3 decades, but not this. So if I can hook up with someone who uses this sort of setup day to day, I would co-author. Maybe you can hook me up with someone you know?

    best of the season to you
    –bentrem

    1) http://markjaquith.wordpress.com/2005/11/02/my-wordpress-toolbox/

    • westi says:

      Ben that sounds like a great idea. I do use Eclipse on a day-to-day basis now as my main WordPress dev environment, however I have moved over to OS X rather than Windows.

  8. Ben Tremblay says:

    Yaa, I knew from something somewhere that you were OS X based. But still, I’m sure you could explicate a 101 while juggling chain-saws. ;-)

    My method of proceeding is pretty crude: I see how many tangles I can incur in the shortest amount of time … point being to sniff out how a naive user is likely to get tripped up.
    First thing I hit was that Aptana and Zend tools don’t play together well in Eclipse; Bill Lazar at Aptana invited me to start a ticket, which I did on their trac [1].
    Immediate payoff was to find out that a) Shalom Gibly at Aptana is formerly from Zend (interesting back-story!), b) that Bill is a WP fan, and that c) Aptana has a “community edition” on the shelf somewhere. (Aptana arose out of Eclipse, did you know that?)
    So just how to string these together remains un-substantiated. (Separate Eclipse profiles, one for Zend tools and another with Aptana? with Subversion sitting in the wings? Until I know that sorta thing positively I say I don’t know at all.)

    So that’s where things sit right now. I just discovered BuddyPress so heh am very pleasantly distracted. :-)

    1) http://support.aptana.com/asap/browse/PHP-607

  9. jazzvox says:

    Great post, pictures work better than terms, thanks for your effort ;-)
    Only that WinGrep seems to be not available on my WIN 7 Pro, any hint for that ??
    I just started to make use of TortoiseSVN, seems to be working flawless with Subclipse in a PDT installation. Complex but digestable…

  10. PHP Scripts says:

    I cannot get this to run on Windows 7 pro either :( Any other suggestions or alternatives? Just what I need but no dice.



d
go to dashboard
l
go to login
h
show/hide help
e
edit post/page
r
comment on post/page
m
go to moderate comments
esc
cancel
%d bloggers like this: