Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102415117
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
Thu, Feb 20, 11:57
Size
536 B
Mime Type
text/x-php
Expires
Sat, Feb 22, 11:57 (2 d)
Engine
blob
Format
Raw Data
Handle
24352147
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