Files
firefox/python/mozversioncontrol/test/python.toml
T
Connor Sheehan eee70aada3 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

29 lines
415 B
TOML

[DEFAULT]
subsuite = "mozversioncontrol"
["test_branch.py"]
["test_commit.py"]
["test_context_manager.py"]
["test_create_try_commit.py"]
["test_get_branch_nodes.py"]
["test_get_commit_patches.py"]
["test_get_mozilla_remote_args.py"]
["test_get_upstream_remotes.py"]
["test_push_to_try.py"]
["test_remove_current_commit.py"]
["test_update.py"]
["test_workdir_outgoing.py"]
["test_working_directory.py"]