Troy Thompson

Web Developer

Archive for the ‘svn’ Tag

  1. Howto Create a hotkey to commit in Subclipse

    Published
    Tagged
    Content

    I use Subclipse as a plugin for Eclipse / Aptana, and there is no hotkey to perform a commit. This means anytime you want to commit something you have to navigate the file tree and then the context menus to commit, I'd rather not leave the keyboard to do a commit.

    So after some digging around I figured out how to add a hotkey, and I wanted to share.

    Open Eclipse / Aptana

    Window > Preferences

    In the filter box, type "keys"

    Scroll to "Save All" and double click it.

    In the Command field set change the Category to "SVN"

    Change the Name to "&Commit..."

    Change the key sequence to the key combo you want to perform a commit. I use alt + shift + s, but that might be weird for some folks.

    Click Add

    If you were successful you should be able to use your key combo to perform a commit for now on.

  2. WordPress Minor update, and why I love SVN

    Published
    Tagged
    Content

    So a minor WordPress released an update 3 days ago. If you don't update, one could use xmlrpc.php to edit posts on your blog, too bad a majority of WordPress users do not know it or can't be troubled to upgrade.

    Honestly, if I were on 2.3.2 and didn't have SVN I probably would not upgrade either.

    However, I was able to upgrade 3 sites in less than 10 minutes with SVN. :-)

    Note, I use the branch and not the trunk, there is a misconception that if you're using SVN WordPress you're using bleeding edge software that is unstable.
    Even the WordPress Subversion Access page shows an example of checking out from the trunk, which is a bad idea unless your developing a plugin for a later version of WordPress.

    The WordPress branch has been stable for me so far, but I only update when I hear an announcement or I'm feeling experimental.

    You can also use svn externals to automatically update plugins.

    Just navigate to wordpress plugins directory
    type “svn pe svn:externals .”
    e.g.
    akismet http://svn.wp-plugins.org/akismet/trunk/
    audit-trail http://svn.wp-plugins.org/audit-trail/trunk/
    etc.

    Save, then "svn up".