diff --git a/src/applications/diffusion/query/contains/DiffusionMercurialContainsQuery.php b/src/applications/diffusion/query/contains/DiffusionMercurialContainsQuery.php index d796525c55..dbf40062ba 100644 --- a/src/applications/diffusion/query/contains/DiffusionMercurialContainsQuery.php +++ b/src/applications/diffusion/query/contains/DiffusionMercurialContainsQuery.php @@ -3,10 +3,16 @@ final class DiffusionMercurialContainsQuery extends DiffusionContainsQuery { protected function executeQuery() { + $request = $this->getRequest(); + $repository = $request->getRepository(); + list($contains) = $repository->execxLocalCommand( + 'log --template %s --limit 1 --rev %s --', + '{branch}', + $request->getCommit()); - // TODO: Implement this. - - return array(); + return array( + trim($contains) => $request->getCommit(), + ); } }