Archive for September, 2008

New Mercurial extension: Bitbucket Extension

Monday, September 29th, 2008

If you've ever used Bazaar, you know that one of its features is a shorthand URL scheme for referring to Bazaar repositories on Launchpad. For example, to clone Sparkle's main repository:

% bzr clone lp:sparkle

I've created an extension that enables you to do the same thing in Mercurial with Bitbucket repositories.

% hg clone bb://boredzo/bitbucketextension

The Bitbucket extension adds two URL schemes: bb:, and bb+ssh:. The bb: scheme communicates with Bitbucket over HTTPS; you can guess what bb+ssh does.

(Note: As of Mercurial 1.0.2, you must include the double-slash, because hg pull will interpret the URL as a relative path without it.)

New utility: rehash_services

Friday, September 19th, 2008

This is one that I've had kicking around for awhile. A tweet by Augie Fackler prompted me to post it.

rehash_services is a simple command-line tool that does exactly one thing: It updates the contents of your Services menu. You'd use this after installing or updating an app that provides services, in order to update the Services menu without logging out.

Note: You don't need to use this when creating services with ThisService, as those services automatically refresh the Services menu on launch.

In case you're wondering: It works by calling NSUpdateDynamicServices. That's all. The program is really short.