Summary: We were incorrectly matching `$` in the regexp against a possible `\r\n`. I missed this earlier when trying to catch all of these.
Test Plan:
- Added unit test and made it pass.
- Did another search for `getLine()` to see if I could spot any more of these, but failed to identify any via inspection.
Reviewers: vrana, mbishopim3
Reviewed By: mbishopim3
CC: aran
Differential Revision: https://secure.phabricator.com/D5038
* (or any other parser) with a carefully constructed property change.
*/
protected function parsePropertyHunk(ArcanistDiffChange $change) {
- $line = $this->getLine();
+ $line = $this->getLineTrimmed();
if (!preg_match('/^_+$/', $line)) {
$this->didFailParse("Expected '______________________'.");
}
case 'suppress-blank-empty.gitdiff':
$this->assertEqual(1, count($changes));
break;
+ case 'svn-property-windows.svndiff':
+ $this->assertEqual(1, count($changes));
+ break;
default:
throw new Exception("No test block for diff file {$diff_file}.");
break;
--- /dev/null
+Index: .arcconfig\r
+===================================================================\r
+--- .arcconfig (revision 1957)\r
++++ .arcconfig (working copy)\r
+\r
+Property changes on: .arcconfig\r
+___________________________________________________________________\r
+Added: herp\r
+## -0,0 +1 ##\r
++derp\r
+\ No newline at end of property