]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Instead of looping forever, resolve the relative commit
authorepriestley <git@epriestley.com>
Wed, 21 Mar 2012 18:07:15 +0000 (11:07 -0700)
committerepriestley <git@epriestley.com>
Wed, 21 Mar 2012 18:07:15 +0000 (11:07 -0700)
Summary: Obvious error in refactoring code around getCanonicalRevisionName() in D1954.

Test Plan: Ran "arc diff" without looping. Can you verify this fixes your case?

Reviewers: Makinde, btrahan

Reviewed By: Makinde

CC: aran, epriestley
Maniphest Tasks: T1025

Differential Revision: https://secure.phabricator.com/D1970

src/repository/api/mercurial/ArcanistMercurialAPI.php

index b5a80c5c96e4b6f3b5f254d9744e0e52f1cd116f..74a21c4e419d06d7be03b179621b0f91fb0ff314 100644 (file)
@@ -61,8 +61,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
     list($stdout) = $this->execxLocal(
       'log -l 1 --template %s -r %s --',
       '{node}',
-      $this->getRelativeCommit());
-
+      $string);
     return $stdout;
   }