Page MenuHomestyx hydra

DiffusionMercurialExpandShortNameQuery.php
No OneTemporary

DiffusionMercurialExpandShortNameQuery.php

<?php
final class DiffusionMercurialExpandShortNameQuery
extends DiffusionExpandShortNameQuery {
protected function executeQuery() {
$repository = $this->getRepository();
$commit = $this->getCommit();
list($full_hash) = $repository->execxLocalCommand(
'log --template=%s --rev %s',
'{node}',
$commit);
$full_hash = explode("\n", trim($full_hash));
// TODO: Show "multiple matching commits" if count is larger than 1. For
// now, pick the first one.
$this->setCommit(head($full_hash));
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Apr 28, 5:50 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1318074
Default Alt Text
DiffusionMercurialExpandShortNameQuery.php (546 B)

Event Timeline