Closed Bug 1703039 Opened 3 years ago Closed 3 years ago

Warn against `hg commit --amend -m` in the contribution docs

Categories

(Developer Infrastructure :: Source Documentation, enhancement)

enhancement

Tracking

(firefox89 fixed)

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: mgaudet, Assigned: mgaudet)

References

Details

Attachments

(1 file)

See Bug 1703032 for a description of the thing we're trying to avoid;

Assignee: nobody → mgaudet
Status: NEW → ASSIGNED
See Also: → 1703032
Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ca08f26c6106
Warn against `hg commit --amend -m` in the contribution docs r=firefox-source-docs-reviewers,sylvestre,championshuttler

Looks like I was too late to the review, but hg amend or git commit --amend -CHEAD are alternatives that re-use the full commit message.

I was also thinking why dont people use directly hg commit --amend --no-edit, I use this everytime I make changes to exisiting revision or their usecase is different? Can you confirm :mgaudet

Flags: needinfo?(mgaudet)

So the specific case I see is this: A new contributor is asked to change their commit message; the bring knowledge from Git or GitHub like workflows, and just go hg commit --amend -m "Bug XYZ - Updated Message r?reviewer"; but as hinted, this then blows up. This really is the direct use case where changing the commit message is in fact part of the goal, to your point about why not --no-edit

Flags: needinfo?(mgaudet)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: