Closed Bug 1984467 Opened 1 year ago Closed 1 year ago

`moz-phab uplift` always uses `origin` as the remote when determining remote branch

Categories

(Conduit :: moz-phab, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheehan, Assigned: sheehan)

Details

Attachments

(1 file)

When determining the remote branch to use for uplift revisions, moz-phab assumes the appropriate remote is named origin.

Assignee: nobody → sheehan

Currently we hard-code origin as the remote name when finding
a remote branch to use as the uplift target to rebase patches
onto. Instead use the result of get_base_remotes to build
the remote branches. The messaging in get_base_remotes will
inform the user of multiple remotes being available and suggest
the git_remote config option to enforce a specific remote in
the event we select the wrong remote branch. Update wording in
one log message to remove references to finding a base commit,
as that was the single usage of this method previously. Also
update tests to show the expected behaviour change after this
patch.

update test_integration_git

Authored by https://github.com/cgsheeh
https://github.com/mozilla-conduit/review/commit/b5f966ed20e42dee399dbf5101be5438234d9741
[main] git: use get_base_remotes when building repo branch head (Bug 1984467) r=shtrom,mhodson

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: