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:
@@ -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(),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user