Closed Bug 1828731 Opened 3 years ago Closed 1 year ago

`moz-phab submit` should not overwrite the existing repo for the patch

Categories

(Conduit :: moz-phab, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheehan, Assigned: mathew.hodson)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

In https://phabricator.services.mozilla.com/D174893 the patch was approved and attempted to land, but a merge conflict was found. The original author fixed the merge conflict locally and re-submitted, but used moz-phab submit instead of moz-phab uplift --train.

This requirement of using moz-phab uplift --train to re-submit uplifts is likely a footgun that others will run into. moz-phab submit should detect a re-submission and ensure the callsign of the repo remains the same on re-submission.

(In reply to Connor Sheehan [:sheehan] from comment #0)

This requirement of using moz-phab uplift --train to re-submit uplifts is likely a footgun that others will run into.

Indeed, I fired this footgun over in bug 1861259.

This allows you to run moz-phab submit to update a revision that
was already created on a uplift repo. Previously if you did that,
the revision would be updated to the wrong repo.

You can now use moz-phab uplift on an uplifted commit from beta
to create a new revision for release. As long as the --train
parameter is different from the previous uplift repo, a new
revision will be created.

Attachment #9360861 - Attachment description: uplift: Only set repo on revision creation (Bug 1828731) r?zeid → WIP: uplift: use repo from existing revision when updating diffs (Bug 1828731)
Attachment #9360861 - Attachment description: WIP: uplift: use repo from existing revision when updating diffs (Bug 1828731) → uplift: use repo from existing revision when updating diffs (Bug 1828731)

This is ready to be reviewed now.

Flags: needinfo?(sheehan)

(In reply to Mathew Hodson from comment #3)

This is ready to be reviewed now.

I replied on the patch.

Flags: needinfo?(sheehan)
Attachment #9360861 - Attachment description: uplift: use repo from existing revision when updating diffs (Bug 1828731) → uplift: use repo from existing revision when updating diffs (Bug 1828731) r=sheehan
Assignee: sheehan → mathew.hodson
Status: NEW → ASSIGNED
Attachment #9360861 - Attachment description: uplift: use repo from existing revision when updating diffs (Bug 1828731) r=sheehan → submit: use repo from existing revision when updating diffs (Bug 1828731) r=sheehan
Status: ASSIGNED → 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

Creator:
Created:
Updated:
Size: