mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Before, the "relevant" moz.build files were based strictly on filename. In reality, there are some moz.build files that we wish to ignore. The previous commit introduced a Finder that knows how to ignore moz.build files that should be ignored. In this commit, we hook it up to our low-level function for determining the set of relevant moz.build files for a path. The main benefit of this change is that paths in the moz.build test directory no longer say test moz.build files are relevant. Previously, we would return these test moz.build files. Some of these are invalid and would cause execution to fail. So, commands like `mach file-info` will no longer attempt to evaluate moz.build files they weren't supposed to and will stop erroring. Another benefit is that the function returns faster. When passing in every file in the repo (>230,000 files), execution time dropped from ~8.03s to ~6.16s. This is probably due to fewer path operations. MozReview-Commit-ID: J2d25ZtxjFt
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