diff --git a/src/IDF/Scm/Svn.php b/src/IDF/Scm/Svn.php index 89f4c1d..46a3cc7 100644 --- a/src/IDF/Scm/Svn.php +++ b/src/IDF/Scm/Svn.php @@ -85,6 +85,23 @@ class IDF_Scm_Svn extends IDF_Scm return sprintf(Pluf::f('svn_remote_url'), $project->shortname); } + /** + * Returns the URL of the subversion repository. + * + * @param IDF_Project + * @return string URL + */ + public static function getAuthAccessUrl($project, $user) + { + $conf = $project->getConf(); + if (false !== ($url=$conf->getVal('svn_remote_url', false)) + && !empty($url)) { + // Remote repository + return $url; + } + return sprintf(Pluf::f('svn_remote_url'), $project->shortname); + } + /** * Returns this object correctly initialized for the project. *