diff --git a/src/applications/repository/worker/commitchangeparser/mercurial/PhabricatorRepositoryMercurialCommitChangeParserWorker.php b/src/applications/repository/worker/commitchangeparser/mercurial/PhabricatorRepositoryMercurialCommitChangeParserWorker.php index baaa02b559..3b365b88e3 100644 --- a/src/applications/repository/worker/commitchangeparser/mercurial/PhabricatorRepositoryMercurialCommitChangeParserWorker.php +++ b/src/applications/repository/worker/commitchangeparser/mercurial/PhabricatorRepositoryMercurialCommitChangeParserWorker.php @@ -103,8 +103,9 @@ final class PhabricatorRepositoryMercurialCommitChangeParserWorker $away = array(); foreach ($changes as $path => $change) { - if ($path['targetPath']) { - $away[$path['targetPath']][] = $path; + $target_path = $change['targetPath']; + if ($target_path) { + $away[$target_path][] = $path; } }