|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-22 12:33 UTC] ruud at t-boonproductions dot nl
[2008-01-29 22:18 UTC] alan at akbkhome dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 09:00:01 2025 UTC |
Description: ------------ When using svn_import php give a boolean true back. But nothing changed in the repository. When I enter the command as the same user (svn import import_dir repository_url) it works fine. Reproduce code: --------------- public function __construct($p_sModuleUrl, $p_sTemplateDir){ parent::__construct($p_sModuleUrl, $p_sTemplateDir); $oAuth= new clsAuthenticate(); $this->_aUser = $oAuth->getArray(); svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, $this->_aUser["svn_user"]); svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, $this->_aUser["svn_pass"]); $this->_sLocalPath = realpath('/usr/local/www/dev/'.$this->_aUser["svn_user"].'/common/'); $this->_sRepository = "file:///usr/local/svn/repository/insite"; $this->_sDirStructure = realpath('/usr/local/svn/project_layout'); } public function getAjaxAddsvn(){ $oProject = new doProjects(); $oInput = clsInput::singleton(); $nProject = $oInput->get('project'); $oProject->loadById($nProject); if (svn_import('/usr/local/www/dev/ruud/maximaal', $this->_sRepository."/test123", false)){ return $this->getMessage("Subversion project created"); }else{ return $this->getMessage("Subversion project creation FAILED!"); } } Expected result: ---------------- Directory added to the repository. Actual result: -------------- boolean true. Nothing changed in repository.