]> khamidou — GitHub mirrors - arcanist.git/commit
Added support for 'hg export' diff format
authorGrigory <grigory.v.p@gmail.com>
Thu, 26 Jul 2012 17:06:16 +0000 (10:06 -0700)
committerepriestley <git@epriestley.com>
Thu, 26 Jul 2012 17:08:49 +0000 (10:08 -0700)
commit414e1e3e40f253215b8569eb61e51acfe25afbc6
treed2ee086ad23f9b0ff92d444b697c0cae00c52762
parent8d9e1d84793aa6bf21175dcaeee8922ec8ad99f7
Added support for 'hg export' diff format

Summary: This diff format is used by de-facto mercurial GUI called "TortoiseHG".
It is available as the only way to copy diff into clipboard (right click commit,
select "export", select "copy patch". I added this format support into arcanist
so revisions in Differential can be created from TortoiseHG via simple copy-
paste. Unit test added, manually tested.

See: https://github.com/facebook/arcanist/pull/46

Reviewed by: epriestley
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistDiffParserTestCase.php
src/parser/__tests__/diff/hg-patch.hgdiff [new file with mode: 0644]