Page MenuHomePhorge

DiffusionSvnExistsQuery.php
No OneTemporary

Size
536 B
Referenced Files
None
Subscribers
None

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;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 8:51 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
119977
Default Alt Text
DiffusionSvnExistsQuery.php (536 B)

Event Timeline