]> khamidou — GitHub mirrors - arcanist.git/commit
Build correct corpus in copied or moved files
authorvrana <jakubv@fb.com>
Wed, 19 Sep 2012 21:36:38 +0000 (14:36 -0700)
committervrana <jakubv@fb.com>
Thu, 20 Sep 2012 20:20:38 +0000 (13:20 -0700)
commit6929f4e57e7a641d00caf8bf511bbd97d7e8a051
tree92245badd07352a15b33461fdcafb0410e928d34
parent7119f0c4cc9af95a44b81fde1763a212df7ba2a2
Build correct corpus in copied or moved files

Summary:
This problem shows very far away.
One of the symptomps is that the contents of a moved file is displayed as added in Differential but it is not a big deal.

The real trouble happens when you try to `arc patch` this diff.
It tries to both copy the file and to add a new contents (which fails).

Fixes T1709.

Test Plan:
  $ git mv a b
  $ git commit -m.
  $ arc diff --only
  $ git reset --hard HEAD^
  $ arc patch --diff # of the created diff

  $ arc unit src/parser/__tests__

Reviewers: epriestley, btrahan

Reviewed By: btrahan

CC: aran, Korvin, boris, mroch, slawekbiel
Maniphest Tasks: T1709

Differential Revision: https://secure.phabricator.com/D3524
src/workflow/ArcanistDiffWorkflow.php