This page should include instructions on updating mozilla central with the latest version of the SDK code.

Updating up the local clone

If you haven't checked out from mercurial before

hg clone https://hg.mozilla.org/projects/larch/ larch
cd larch/addon-sdk/source
git init
git remote add origin  https://github.com/mozilla/addon-sdk.git
git fetch origin
git branch --track integration refs/remotes/origin/integration
git reset --hard integration

This will give you the latest larch code and update the SDK files to the latest versions from the integration branch.

If you have previously done the above

cd larch
hg pull -u
cd addon-sdk/source
git pull origin integration

Updates the larch and SDK files to the latest versions from the integration branch.

Testing changes

Before committing you can test your changes by pushing to the try server. You need to have mercurial queues enabled for this to work.

hg addremove
hg qnew -f -m "<commit message>" testpatch

Creates a temporary commit that can be pushed to try. Include the output of TryChooser to restrict builds and tests.

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

Pushes the temporary commit to the try server, depending on your TryChooser string you should get an email telling you where to look for results.

Once you're done the following converts the temporary commit to a real commit that can be pushed to the project branch:

hg qfinish -a

Viewing and committing changes

If you haven't done the commit by the above method then you can do it like this:

hg diff

Shows the list of changes waiting to land in larch

hg addremove
hg commit -m "..."

Commits the changes

Pushing the changes to the project branch

hg push ssh://hg.mozilla.org/projects/larch/

Pushes the changes to the test branch.