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
F15579318: D17121.diff
Tue, May 6, 11:24 PM
F15460039: D17121.id41184.diff
Mar 31 2025, 7:31 PM
F15455586: D17121.id.diff
Mar 30 2025, 3:24 AM
F15455128: D17121.diff
Mar 29 2025, 10:24 PM
F15446813: D17121.id.diff
Mar 27 2025, 8:24 PM
F15420385: D17121.id41184.diff
Mar 21 2025, 1:35 PM
F15419324: D17121.id.diff
Mar 21 2025, 5:18 AM
F15380775: D17121.id41178.diff
Mar 14 2025, 4:26 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