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
Unknown Object (File)
Wed, Dec 11, 9:23 AM
Unknown Object (File)
Mon, Dec 9, 9:35 AM
Unknown Object (File)
Wed, Dec 4, 2:39 AM
Unknown Object (File)
Tue, Dec 3, 5:38 PM
Unknown Object (File)
Tue, Dec 3, 5:37 PM
Unknown Object (File)
Tue, Dec 3, 5:24 PM
Unknown Object (File)
Wed, Nov 27, 9:52 AM
Unknown Object (File)
Tue, Nov 26, 9:17 PM
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