The NSPR and NSS sources in mozilla-central are maintained by the NSPR and NSS teams and always taken from exports of CVS tags. Do not check in individual changes. If you check in an individual change by mistake, your change will be lost when the NSPR and NSS teams push a new static CVS tag to mozilla-central.
If NSPR or NSS must be upgraded to a new static tag, follow this procedure:
- Before starting, make sure your local repository is updated to mozilla-central tip and that there are no local changes:
$ hg status -mard
- Pull the new sources
$ python client.py update_nspr NSPR_TAG_NAME
$ python client.py update_nss NSS_TAG_NAME
- If you update a branch older than Mozilla 17 (without the change from bug 782784), you must manually add a dummy change (add or remove a blank line) to force a rebuild of NSPR:
- Check directory mozilla/nsprpub/patches/ for patches that need to be applied to NSPR, and directory mozilla/security/patches/ for patches that need to be applied to NSS. Apply the patches. If merging is required, update the patch file. If a patch is no longer needed, remove the patch from the directory and update the README file.
- Check for new or removed files
$ hg addremove -n
Review the output to make sure it looks correct
- Commit the update:
$ hg commit -A
- Push the update:
$ hg push