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
F19556255: D17121.id41184.diff
Fri, Jan 30, 7:21 PM
F19535757: D17121.id.diff
Wed, Jan 21, 8:11 AM
F19528785: D17121.diff
Mon, Jan 19, 11:48 AM
F19507678: D17121.id41184.diff
Fri, Jan 9, 10:27 PM
F19507677: D17121.id.diff
Fri, Jan 9, 10:27 PM
F19468324: D17121.id.diff
Sun, Jan 4, 2:25 AM
F19467944: D17121.diff
Sat, Jan 3, 8:21 PM
F19065497: D17121.id.diff
Nov 30 2025, 1:55 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable