gecko-dev/python
Connor Sheehan 529144ec47 Bug 1869733: consider all official remotes when finding base ref and patches r=zeid
A previous patch added parsing `git remote -v`, preferring
`mozilla-unified` as the official upstream remote and falling
back to the first official-looking remote if unified was not
found. We assumed that a developer is either using mozilla-unified,
or is using a single-headed repo like central. This overlooks
the fact that it is possible to clone from central, and then
pull other repos in, creating a repo with multiple official
remotes.

Update the `get_upstream_remote` function to find all official
looking remotes instead of a single official remote, and change
the `get_remote_arg` function to return a list of `--remotes`
arguments to be passed to various Git commands. This allows
Git to take all official remotes into consideration and more
precisely find the commits which are not present on any official
upsteams.

Add a test for `get_mozilla_remote_args` while we are here.

Differential Revision: https://phabricator.services.mozilla.com/D199637
2024-01-25 20:04:09 +00:00
..
docs Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol 2023-12-13 18:32:20 +00:00
gdbpp/gdbpp Bug 1871014 - Fix GDB pretty printer for nsWeakPtr. r=nalexander 2023-12-22 09:10:29 +00:00
l10n Bug 1863022 - Render message from browser-siteProtections.js, replace messaging system telemetry, and migrate strings r=pdahiya,omc-reviewers,pbz,fluent-reviewers,flod 2024-01-10 22:20:05 +00:00
lldbutils Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau 2023-03-20 13:06:27 +00:00
mach Bug 1874208 - Remove the always printed `Site not up-to-date reason` r=firefox-build-system-reviewers,glandium 2024-01-16 17:49:06 +00:00
mozboot Bug 1869093 - When bootstrapping on Arch Linux check if packages are already installed before try to install them. r=ahochheiden,firefox-build-system-reviewers,sergesanspaille 2024-01-23 17:46:15 +00:00
mozbuild Bug 1876121 - Put back Hack the vendored pip's vendored pkg_resources to support python 3.12 r=TravisLong,mach-reviewers,ahochheiden 2024-01-25 00:57:03 +00:00
mozlint Bug 1869430 - Batch 19.2 convert python unittest .ini -> .toml. r=gbrown,taskgraph-reviewers 2023-12-12 17:40:03 +00:00
mozperftest Bug 1870500 - Resolving the WPT intermittent failure. r=perftest-reviewers,kshampur 2024-01-24 02:36:24 +00:00
mozrelease Bug 1870213 - Remove usage of six in python/mozrelease r=mach-reviewers,ahochheiden 2023-12-20 03:05:48 +00:00
mozterm Bug 1869430 - Batch 19.2 convert python unittest .ini -> .toml. r=gbrown,taskgraph-reviewers 2023-12-12 17:40:03 +00:00
mozversioncontrol Bug 1869733: consider all official remotes when finding base ref and patches r=zeid 2024-01-25 20:04:09 +00:00
sites Bug 1874923 - Update Glean to 56.1.0 r=janerik,supply-chain-reviewers,mach-reviewers,ahochheiden 2024-01-22 15:45:27 +00:00
README
mach_commands.py Bug 1801836 - Remove no longer necessary 'from __future__' imports under python/. r=linter-reviewers,glandium,ahal DONTBUILD 2022-12-23 01:26:15 +00:00
moz.build Bug 1869430 - Batch 19.2 convert python unittest .ini -> .toml. r=gbrown,taskgraph-reviewers 2023-12-12 17:40:03 +00:00

README

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