mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
We want `mach run` for Android to be wildly different than `mach run` for Desktop. But right now, mach really doesn't support two different implementations of the same underlying named command. The avenues that might support different implementations, mostly run through `conditions`. `conditions` were added to mach commands in Bug 901972, and never really anticipated this use case: commands are keyed by name condition evaluation is delayed until dispatch-time. In order to have different commands with the same name, and have full support for `--help`, command matching, suggestions, etc, we really need conditions to evaluate at parse-time. Indeed, since Bug 901972 landed, we've moved context creation earlier in the dispatch flow and hacked in things that look like parse-time conditions (see Bug 1291335 and Bug 1305695). This approach is not the prettiest, but it handles this narrow use-case -- making `mach run` and `mach install` different on Android -- without much code churn. Differential Revision: https://phabricator.services.mozilla.com/D18290
This directory contains common Python code. The basic rule is that if Python code is cross-module (that's "module" in the Mozilla meaning - as in "module ownership") and is MPL-compatible, it should go here. What should not go here: * Vendored python modules (use third_party/python instead) * Python that is not MPL-compatible (see other-licenses/) * Python that has good reason to remain close to its "owning" (Mozilla) module (e.g. it is only being consumed from there). Historical information can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=775243 https://bugzilla.mozilla.org/show_bug.cgi?id=1346025