1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-02 02:40:58 +01:00

Implement DiffusionMercurialContainsQuery in Diffusion

Summary:
Currently, we have no implementation, so all Mercurial commits show "None" for "Branches".

Instead, implement this method.

Test Plan: {F34076}

Reviewers: DurhamGoode, vrana, chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5145
This commit is contained in:
epriestley 2013-02-27 18:41:21 -08:00
parent 3f547d562d
commit 8fead36615

View file

@ -3,10 +3,16 @@
final class DiffusionMercurialContainsQuery extends DiffusionContainsQuery { final class DiffusionMercurialContainsQuery extends DiffusionContainsQuery {
protected function executeQuery() { 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(
trim($contains) => $request->getCommit(),
return array(); );
} }
} }