]> khamidou — GitHub mirrors - arcanist.git/commit
ArcanistBundle: fix attribution of $old_phid when building binary changes
authorSergio Correia <sergio@correia.cc>
Thu, 8 Nov 2012 19:33:28 +0000 (11:33 -0800)
committerepriestley <git@epriestley.com>
Thu, 8 Nov 2012 19:34:22 +0000 (11:34 -0800)
commit02b185571fd07dd736d1c762b6753a00b95d2adb
tree0b3df935056b19318e236fc5c1fabb7aac84a583
parent0a6444790d3d27f2af84f9d01e143ce74ea26fd5
ArcanistBundle: fix attribution of $old_phid when building binary changes

Summary:
The variable $old_phid was not being set in a certain situation in
buildBinaryChange(), and that was causing the following error, during
`arc patch <revision>`:

"the patch applies to <file> (<hash>), which does not match the
current contents."

and hence it was failing to download/apply the patch.

Signed-off-by: Sergio Correia <sergio@correia.cc>
Test Plan:
I spotted the problem in a revision where I was renaming
some images, which are binary.

Reviewers: epriestley, vrana, btrahan

Reviewed By: btrahan

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3925
src/parser/ArcanistBundle.php