Closed Bug 1883957 Opened 1 year ago Closed 1 year ago

Newly created commits are not linked to existing stacks

Categories

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

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: beth, Assigned: sheehan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

(mozconfig:artifact)Barret@FOXYSHAZAM ~\W\s\h\mozilla-central $ moz-phab --version
MozPhab 1.5.1 (Python 3.9.10, Windows)
(mozconfig:artifact)Barret@FOXYSHAZAM ~\W\s\h\mozilla-central $ py --version
Python 3.9.10

STR:

  1. Create a stack.
  2. moz-phab submit
  3. Create a new commit on top of the stack
  4. moz-phab submit

ER:
The new patch should be attached to the existing stack

AR:
It is not.

Duplicate of this bug: 1889388
Severity: -- → S2
Priority: -- → P3
Keywords: regression
Regressed by: 1529766
Assignee: nobody → sheehan

In show_commit_stack with validate=True, we take the list of
commits and load the associated revision data from Phabricator.
show_commit_stack then sets various flags, and iterates through
the commits to display warnings to the user. One of the flags
that is set is commit.submit, which is a boolean that controls
if the commit should be re-submitted or skipped due to being a
no-op update. When validating commits from loaded Phabricator API
data, we currently do not set commit.rev_phid, on the commit,
which means it is only ever correctly set after creating a new
revision in moz-phab submit. When a new revision is added to the
top of a stack, and the parent commit is detected as a no-op submit,
the rev_phid is never set on that revision and thus the new commit
will not have a parent_phid passed to ensure it is correctly
associated with the stack.

Populate commit.rev_phid with the PHID returned from Phabricator
during validation in show_commit_stack.

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: