]> khamidou — GitHub mirrors - arcanist.git/commit
Decompose TYPE_MULTICOPY changes into a MOVE_HERE plus one or more COPY_HERE
authorepriestley <git@epriestley.com>
Thu, 22 Dec 2011 21:48:17 +0000 (13:48 -0800)
committerepriestley <git@epriestley.com>
Sat, 24 Dec 2011 17:00:44 +0000 (09:00 -0800)
commitcf00c44cc3b6bd2b41fcf31a4283fceb312c8f90
tree19e2bdd43da2d46eacfffc541f01a6d0290891f0
parentecc8fb13a81f896eae9dcab1eb3b12853a6d44b9
Decompose TYPE_MULTICOPY changes into a MOVE_HERE plus one or more COPY_HERE

Summary:
See T419 for some philosophical musing on this. The "ideal" way to represent
these changes is two or more COPY_HERE plus a DELETE, but we can't build the
DELETE patch yet.

Just turn one of the COPY_HERE changes into a MOVE_HERE. While less idealistic,
I think this should always work.

Test Plan: This seemed to cleanly apply TenXer D265. TenXer guys, can you
confirm that this makes it actually patch correctly?

Reviewers: jonathanhester, bizrad6, kdeggelman, jungejason, btrahan

Reviewed By: jungejason

CC: aran, jonathanhester, jungejason, epriestley
Maniphest Tasks: T419

Differential Revision: https://secure.phabricator.com/D1270
src/parser/bundle/ArcanistBundle.php