]> khamidou — GitHub mirrors - arcanist.git/commit
Fix exception on diff parse on FreeBSD
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 17 Jan 2014 10:37:55 +0000 (16:37 +0600)
committerepriestley <git@epriestley.com>
Sat, 18 Jan 2014 19:13:28 +0000 (11:13 -0800)
commit2c2c5663cbaffaf790ed6b86327547d995f2fa9c
tree745a4267ebf02040089616f4ba8d76e9d857a1c3
parenta247e2109394f9b235e07d02c6c0e12b5cd52e26
Fix exception on diff parse on FreeBSD

FreeBSD 9.2 comes with diff tool version 2.8.7 which behaves
a bit different from how it is expected to. Namely for diff
between two binary files it says:

  Files A and B are differ

This was leading to an exception when browsing revisions with
changes in binary files.

Tweaked parse patterns in order to fix this issue. Now both
older and newer diff tools are supported.

See: <https://github.com/facebook/arcanist/pull/139>

Reviewed by: epriestley
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistDiffParserTestCase.php
src/parser/__tests__/diff/svn-binary-diff-freebsd.svndiff [new file with mode: 0644]