Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108347590
DiffusionSvnExistsQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Apr 16, 01:49
Size
536 B
Mime Type
text/x-php
Expires
Fri, Apr 18, 01:49 (2 d)
Engine
blob
Format
Raw Data
Handle
25587273
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment