Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2307096
DiffusionSvnExistsQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
536 B
Referenced Files
None
Subscribers
None
DiffusionSvnExistsQuery.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 2:31 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
441506
Default Alt Text
DiffusionSvnExistsQuery.php (536 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment