Page MenuHomePhabricator

Fix a bad interaction between "arc diff --reviewers" and "the first line of a message is always a title"
ClosedPublic

Authored by epriestley on Jan 5 2017, 10:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 5:14 PM
Unknown Object (File)
Fri, Dec 13, 2:51 AM
Unknown Object (File)
Sun, Nov 24, 10:21 PM
Unknown Object (File)
Sat, Nov 23, 6:19 PM
Unknown Object (File)
Nov 5 2024, 11:41 PM
Unknown Object (File)
Nov 5 2024, 11:41 PM
Unknown Object (File)
Nov 5 2024, 11:41 PM
Unknown Object (File)
Nov 4 2024, 10:18 AM
Subscribers
None

Details

Summary

Fixes T12069. We implement "arc diff --reviewers" (and "--cc") by parsing a faux message with "Reviewers: ...".

After D17122, the first line of the message is always interpreted as a title, so the text ends up in the message body.

Instead, use a placeholder title so these fields are never initial fields.

Test Plan

Ran arc diff --reviewers dog, got only one "Reviewers" field.

Diff Detail

Repository
rARC Arcanist
Branch
placeholder
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15120
Build 19853: Run Core Tests
Build 19852: arc lint + arc unit