Page MenuHomec4science

DiffusionSvnExistsQuery.php
No OneTemporary

File Metadata

Created
Thu, Nov 28, 15:33

DiffusionSvnExistsQuery.php

<?php
final class DiffusionSvnExistsQuery extends DiffusionExistsQuery {
protected function executeQuery() {
$request = $this->getRequest();
$repository = $request->getRepository();
list($info) = $repository->execxRemoteCommand(
'info %s',
$repository->getRemoteURI());
$matches = null;
$exists = false;
if (preg_match('/^Revision: (\d+)$/m', $info, $matches)) {
$base_revision = $matches[1];
$exists = $base_revision >= $request->getCommit();
}
return $exists;
}
}

Event Timeline