]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Make arc diff work with multiple heads in hg
authorJamie Wong <jamie.lf.wong@gmail.com>
Thu, 17 May 2012 15:55:55 +0000 (11:55 -0400)
committerJamie Wong <jamie.lf.wong@gmail.com>
Thu, 17 May 2012 17:07:53 +0000 (13:07 -0400)
src/repository/api/mercurial/ArcanistMercurialAPI.php

index eb74c52a261e30d766dd0c9cc38c86e7f2603eae..075903d9b918d452e337229c50b2f56d161474d9 100644 (file)
@@ -174,7 +174,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
         "{node}\1{rev}\1{author}\1{date|rfc822date}\1".
           "{branch}\1{tag}\1{parents}\1{desc}\2",
         $this->getRelativeCommit(),
-        $this->getWorkingCopyRevision().':0',
+        "ancestors({$this->getWorkingCopyRevision()})",
         $this->getBranchName());
       $logs = array_filter(explode("\2", $info));