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:
parent
3f547d562d
commit
8fead36615
1 changed files with 9 additions and 3 deletions
|
@ -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();
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue