]> khamidou — GitHub mirrors - arcanist.git/commit
Fix an issue where `arc diff` would loop indefinitely for a property change
authorepriestley <git@epriestley.com>
Wed, 7 Nov 2012 01:46:55 +0000 (17:46 -0800)
committerepriestley <git@epriestley.com>
Wed, 7 Nov 2012 01:46:55 +0000 (17:46 -0800)
commitc8409bb5b2586576d384596580049142eef35c66
tree30f64f7ff962b3e041e7da01f51ac24da136b06d
parent2e6dcf0fbbb813d2a5b532336c301f26803f7a58
Fix an issue where `arc diff` would loop indefinitely for a property change

Summary:
When we hit a diff which is missing file context, we try to pull it synthetically later. This works for moves and copies, but currently fails for property changes. Since it failed, we didn't have context, so we'd try to pull it again...

The general problem this creates is that when you mark a file "+x" without changing it, we can't show you the content in Differential. Not a huge deal. In some future diff, I'll build the content synthetically.

Adds commits to cover this behavior:

  commit 1830a13adf764b55743f7edc6066451898d8ffa4
  Author: epriestley <git@epriestley.com>
  Date:   Tue Nov 6 17:11:18 2012 -0800

      Mark koan2 +x and edit it.

  commit 8ecc728bcc9b482a9a91527ea471b04fc1a025cf
  Author: epriestley <git@epriestley.com>
  Date:   Tue Nov 6 17:08:44 2012 -0800

      Move 'text' to 'executable' and mark it +x.

  commit 39c8e7dd3914edff087a6214f0cd996ad08e5b3d
  Author: epriestley <git@epriestley.com>
  Date:   Tue Nov 6 16:36:59 2012 -0800

      Mark koan as +x.

Test Plan: Ran unit tests. Previously, they looped indefinitely. Now, they pass.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran
Differential Revision: https://secure.phabricator.com/D3909
src/parser/ArcanistBundle.php
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistBundleTestCase.php
src/parser/__tests__/bundle.git.tgz
src/parser/__tests__/patches/1830a13adf764b55743f7edc6066451898d8ffa4.gitpatch [new file with mode: 0644]
src/parser/__tests__/patches/39c8e7dd3914edff087a6214f0cd996ad08e5b3d.gitpatch [new file with mode: 0644]
src/parser/__tests__/patches/8ecc728bcc9b482a9a91527ea471b04fc1a025cf.gitpatch [new file with mode: 0644]