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
Wed, Jul 16, 1:12 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
366581
Default Alt Text
DiffusionSvnExistsQuery.php (536 B)

Event Timeline