|
|
@ -27,6 +27,10 @@ use Composer\Downloader\TransportException;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
class SvnDriver extends VcsDriver
|
|
|
|
class SvnDriver extends VcsDriver
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @var Cache
|
|
|
|
|
|
|
|
*/
|
|
|
|
protected $cache;
|
|
|
|
protected $cache;
|
|
|
|
protected $baseUrl;
|
|
|
|
protected $baseUrl;
|
|
|
|
protected $tags;
|
|
|
|
protected $tags;
|
|
|
@ -38,6 +42,7 @@ class SvnDriver extends VcsDriver
|
|
|
|
protected $branchesPath = 'branches';
|
|
|
|
protected $branchesPath = 'branches';
|
|
|
|
protected $tagsPath = 'tags';
|
|
|
|
protected $tagsPath = 'tags';
|
|
|
|
protected $packagePath = '';
|
|
|
|
protected $packagePath = '';
|
|
|
|
|
|
|
|
protected $cacheCredentials = true;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @var \Composer\Util\Svn
|
|
|
|
* @var \Composer\Util\Svn
|
|
|
@ -62,6 +67,9 @@ class SvnDriver extends VcsDriver
|
|
|
|
if (isset($this->repoConfig['tags-path'])) {
|
|
|
|
if (isset($this->repoConfig['tags-path'])) {
|
|
|
|
$this->tagsPath = $this->repoConfig['tags-path'];
|
|
|
|
$this->tagsPath = $this->repoConfig['tags-path'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (array_key_exists('cache-credentials', $this->repoConfig)) {
|
|
|
|
|
|
|
|
$this->cacheCredentials = (bool) $this->repoConfig['cache-credentials'];
|
|
|
|
|
|
|
|
}
|
|
|
|
if (isset($this->repoConfig['package-path'])) {
|
|
|
|
if (isset($this->repoConfig['package-path'])) {
|
|
|
|
$this->packagePath = '/' . trim($this->repoConfig['package-path'], '/');
|
|
|
|
$this->packagePath = '/' . trim($this->repoConfig['package-path'], '/');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -307,6 +315,7 @@ class SvnDriver extends VcsDriver
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (null === $this->util) {
|
|
|
|
if (null === $this->util) {
|
|
|
|
$this->util = new SvnUtil($this->baseUrl, $this->io, $this->config, $this->process);
|
|
|
|
$this->util = new SvnUtil($this->baseUrl, $this->io, $this->config, $this->process);
|
|
|
|
|
|
|
|
$this->util->setCacheCredentials($this->cacheCredentials);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|