Page MenuHomePhabricator

Be more lenient when accepting "Differential Revision" in the presence of custom ad-hoc commit message fields
ClosedPublic

Authored by epriestley on Jan 1 2017, 4:10 PM.
Tags
None
Referenced Files
F13169964: D17121.diff
Tue, May 7, 8:51 AM
Unknown Object (File)
Mon, May 6, 3:02 AM
Unknown Object (File)
Wed, May 1, 12:45 AM
Unknown Object (File)
Thu, Apr 11, 10:36 AM
Unknown Object (File)
Tue, Apr 9, 12:26 PM
Unknown Object (File)
Apr 7 2024, 5:37 AM
Unknown Object (File)
Apr 7 2024, 4:33 AM
Unknown Object (File)
Mar 28 2024, 12:19 AM
Subscribers
None

Details

Summary

Fixes T8360. We will now parse revisions out of "Differential Revision: X" followed by other ad-hoc fields which we do not recognize. Previously, these fields would be treated as part of the value.

(In the general case, other fields may line wrap so we can't assume that fields are only one line long. However, we can make that assumption safely for this field.)

Also maybe fix whatever was going on in T9965 although that didn't really have a reproduction case.

Test Plan

Added unit tests.

Diff Detail

Repository
rP Phabricator
Branch
parse1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15066
Build 19771: Run Core Tests
Build 19770: arc lint + arc unit