diff --git a/src/applications/diffusion/conduit/ConduitAPI_diffusion_historyquery_Method.php b/src/applications/diffusion/conduit/ConduitAPI_diffusion_historyquery_Method.php index 3d552d0725..8cf211509b 100644 --- a/src/applications/diffusion/conduit/ConduitAPI_diffusion_historyquery_Method.php +++ b/src/applications/diffusion/conduit/ConduitAPI_diffusion_historyquery_Method.php @@ -125,7 +125,7 @@ extends ConduitAPI_diffusion_abstractquery_Method { '{node};{parents}\\n', ($offset + $limit), // No '--skip' in Mercurial. $branch_arg, - hgsprintf('reverse(%s::%s)', '0', $commit_hash), + hgsprintf('reverse(ancestors(%s))', $commit_hash), $path_arg); $stdout = PhabricatorRepository::filterMercurialDebugOutput($stdout); diff --git a/src/applications/diffusion/conduit/ConduitAPI_diffusion_lastmodifiedquery_Method.php b/src/applications/diffusion/conduit/ConduitAPI_diffusion_lastmodifiedquery_Method.php index 26e679aec3..8cfa1f6f55 100644 --- a/src/applications/diffusion/conduit/ConduitAPI_diffusion_lastmodifiedquery_Method.php +++ b/src/applications/diffusion/conduit/ConduitAPI_diffusion_lastmodifiedquery_Method.php @@ -87,7 +87,7 @@ final class ConduitAPI_diffusion_lastmodifiedquery_Method list($hash) = $repository->execxLocalCommand( 'log --template %s --limit 1 --removed --rev %s -- %s', '{node}', - hgsprintf('reverse(%s::%s)', '0', $drequest->getCommit()), + hgsprintf('reverse(ancestors(%s))', $drequest->getCommit()), nonempty(ltrim($path, '/'), '.')); return $this->loadDataFromHash($hash);