Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F455282
DiffusionSubversionCommandEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
DiffusionSubversionCommandEngine.php
View Options
<?php
final
class
DiffusionSubversionCommandEngine
extends
DiffusionCommandEngine
{
protected
function
canBuildForRepository
(
PhabricatorRepository
$repository
)
{
return
$repository
->
isSVN
();
}
protected
function
newFormattedCommand
(
$pattern
,
array
$argv
)
{
$flags
=
array
();
$args
=
array
();
$flags
[]
=
'--non-interactive'
;
if
(
$this
->
isAnyHTTPProtocol
()
||
$this
->
isSVNProtocol
())
{
$flags
[]
=
'--no-auth-cache'
;
if
(
$this
->
isAnyHTTPProtocol
())
{
$flags
[]
=
'--trust-server-cert'
;
}
$credential_phid
=
$this
->
getCredentialPHID
();
if
(
$credential_phid
)
{
$key
=
PassphrasePasswordKey
::
loadFromPHID
(
$credential_phid
,
PhabricatorUser
::
getOmnipotentUser
());
$flags
[]
=
'--username %P'
;
$args
[]
=
$key
->
getUsernameEnvelope
();
$flags
[]
=
'--password %P'
;
$args
[]
=
$key
->
getPasswordEnvelope
();
}
}
$flags
=
implode
(
' '
,
$flags
);
$pattern
=
"svn {$flags} {$pattern}"
;
return
array
(
$pattern
,
array_merge
(
$args
,
$argv
));
}
protected
function
newCustomEnvironment
()
{
$env
=
array
();
$env
[
'SVN_SSH'
]
=
$this
->
getSSHWrapper
();
return
$env
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 6:49 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69891
Default Alt Text
DiffusionSubversionCommandEngine.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment