]> khamidou — GitHub mirrors - arcanist.git/commit
Strip colorized diffs, show line numbers in context
authorepriestley <git@epriestley.com>
Wed, 14 Mar 2012 13:34:00 +0000 (06:34 -0700)
committerepriestley <git@epriestley.com>
Wed, 14 Mar 2012 13:34:00 +0000 (06:34 -0700)
commitf673ab10b16c22806666e670e590481795d87284
tree6a56b5cf499ebde29e488f97c21086f642661950
parent7494a95c40e94559924d6943e02f6642c49b2073
Strip colorized diffs, show line numbers in context

Summary:
  - When users pipe in colorized diffs, strip the colors instead of failing.
  - When showing context, show line numbers (we do show 3 lines around the failure, the failure was just on the first line).
  - Remove an irrelevant TODO comment (we handle this elsewhere now).

Test Plan: Unit tests.

Reviewers: Makinde, btrahan

Reviewed By: Makinde

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1887
src/parser/diff/ArcanistDiffParser.php
src/parser/diff/__tests__/ArcanistDiffParserTestCase.php
src/parser/diff/__tests__/data/colorized.hggitdiff [new file with mode: 0644]