]> khamidou — GitHub mirrors - arcanist.git/commit
Fix parsing of "hg diff -r x:y" diffs
authorepriestley <git@epriestley.com>
Wed, 25 Jul 2012 22:55:32 +0000 (15:55 -0700)
committerepriestley <git@epriestley.com>
Wed, 25 Jul 2012 22:55:32 +0000 (15:55 -0700)
commit11d0331d21f6d46b37eb80b27a0e5c947f3fe48b
tree3ef379bba930d6aa552ca2355ee85aa4e43e4545
parent316122c4e06df80c8cc4eeae0c90d19fffafceb9
Fix parsing of "hg diff -r x:y" diffs

Summary: When you run `hg diff -r x:y`, we get two "-r" arguments in the diff header. Currently, we parse this incorrectly.

Test Plan: Added unit test which previously failed; test now passes.

Reviewers: dschleimer, btrahan

Reviewed By: dschleimer

CC: aran, cakoose
Maniphest Tasks: T1550

Differential Revision: https://secure.phabricator.com/D3061
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistDiffParserTestCase.php
src/parser/__tests__/diff/hg-diff-range.hgdiff [new file with mode: 0644]