947
edits
(→Development Practices: section for helper scripts) |
(→Mirroring: add details about packages.txt) |
||
| Line 268: | Line 268: | ||
mirrored depends on have not already been mirrored to m-c, these | mirrored depends on have not already been mirrored to m-c, these | ||
should also be mirrored. | should also be mirrored. | ||
==== Using generate_diff.py ==== | |||
A script has been written to aid with package mirrroring: | A script has been written to aid with package mirrroring: | ||
| Line 276: | Line 278: | ||
* clones a fresh copy of the [https://github.com/mozilla/mozbase mozbase repository] | * clones a fresh copy of the [https://github.com/mozilla/mozbase mozbase repository] | ||
* ensures that the tags associated with the specified packages and associated versions exist | * ensures that the tags associated with the specified packages and associated versions exist | ||
* checks that the versions specified are internally consistent with what is in | * checks that the versions specified are internally consistent with what is in mozilla-central | ||
And if everything looks good... | And if everything looks good... | ||
* generates a diff that will upgrade the specified packages to the specified versions. Unless specified with `-o`, the output will be in the current working directory named after the hash tag of the git repo | * generates a diff that will upgrade the specified packages to the specified versions. Unless specified with `-o`, the output will be in the current working directory named after the hash tag of the git repo | ||
* updates http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/packages.txt which is used via [http://mxr.mozilla.org/mozilla-central/source/build/virtualenv/populate_virtualenv.py populate_virtualenv.py] to add the mozbase packages to the mozilla-central [https://developer.mozilla.org/en-US/docs/Python/Virtualenv virtualenv] via [http://docs.python.org/2/install/index.html#modifying-python-s-search-path .pth] files | |||
'''Usage:''' | '''Usage:''' | ||
| Line 288: | Line 291: | ||
''(as displayed with: `generate_diff.py --help`)'' | ''(as displayed with: `generate_diff.py --help`)'' | ||
Example: | '''Example:''' | ||
│./generate_diff.py mozcrash=0.3 | │./generate_diff.py mozcrash=0.3 | ||
edits