Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93421636
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, Nov 28, 15:33
Size
536 B
Mime Type
text/x-php
Expires
Sat, Nov 30, 15:33 (2 d)
Engine
blob
Format
Raw Data
Handle
22631739
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