Push to try

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.


  • If you’re using Mercurial Queues, this push command 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:

    try = ssh://hg.mozilla.org/try/

    then the command becomes hg push -f try. Or you could use a script or an alias.

4 Responses to Push to try

  1. Dirkjan Ochtman

    I seem to remember you can’t push with mq csets applied… Did you actually test that stuff?

  2. Dirkjan is half-right (or half-wrong, your pick…)

    To push with mq patches applied you must force ( -f ) the push.

  3. What if you want to push to a specific repository, eg. tracemonkey? Is it this:

    hg push -f ssh://hg.mozilla.org/try/tracemonkey/


  4. Nick: No, even if your work is based on tracemonkey you can just: hg push -f ssh://hg.mozilla.org/try/

    Regardless of whether your work is based on mozilla-central or tracemonkey, it’s all just a pile of changesets to Mercurial. The (one and only) “try” repo will gladly accept your tracemonkey-based changesets. The Try server doesn’t even know the difference, so it’ll update to your tip and try to build. Since the build commands for mozilla-central will also work on tracemonkey, it all just works.

Leave a Reply

Your email address will not be published. Required fields are marked *