Underscores
August 21st, 2008
One of the funny little benefits of switching the Mozilla Developer Center from MediaWiki to Deki is that page names can contain actual underscores. The big headline on the JS_EvaluateScript page always used to say “JS EvaluateScript”.
Well, not anymore! Since Deki has an HTTP API, I was able to write a Python script to fix the titles of all the JSAPI pages at once. The source code includes a Python module for loading and saving Deki wiki pages. Enjoy!
Push to try
August 18th, 2008
Thanks to Ben Hearsum and Ted Mielczarek, the Try server has a cool new feature: you can now try out some changes without manually creating and uploading a patch. Just hg commit or hg qrefresh your work, and then
hg push -f ssh://hg.mozilla.org/try/
The Try server will kick off Linux, Windows, and Mac builds with all your latest changes. Specifically, it’ll build your hg tip revision.
Details:
-
If you’re using Mercurial Queues, this
pushcommand pushes any patches that are currently applied, and the Try server will build the result. (This is an awesome feature, not a bug!) -
If you’ve ever pushed anything to mozilla-central, you already have the right permissions to do this. If not, see the Mercurial FAQ for more information about pushing.
-
The Try server wiki page has more information about the Try server, including where to find the finished builds.
-
You don’t need to clone or pull from the try repo, and you probably don’t want to. You’d get every half-baked changeset anybody ever tested.
-
You can abbreviate the push command even further. If you add these lines to your $HOME/.hgrc file:
[paths] try = ssh://hg.mozilla.org/try/
then the command becomes
hg push -f try. Or you could use a script or an alias.