Home » Version Control » VersionControl_SVN » Bug #8348
svn copy functionality is faulty
Details
| Submitted | 2006-08-02 14:14 UTC |
|---|---|
| From | peterh at mediatel dot co dot uk |
| Status | Duplicate |
| Package | VersionControl_SVN |
| PHP Version | 5.1.2 |
| OS | Linux ubutu |
| Roadmaps | (Not assigned) |
Comments
[2006-08-02 14:14 UTC] peterh at mediatel dot co dot uk
Description:
------------
In copy, the code current refers to $src and $dst which are not set anywhere. I have changed the code as follows and it seems to work (following the model set by other commands such as 'mkdir')
$cmd = "$this->svn_path $this->_svn_cmd $_switches";
if (!empty($args)) {
$cmd .= ' '. join(' ', $args);
}
Test script:
---------------
This tests the change:
$args = array("from/path", "to/path");
$output = $svn->copy->run($args, $switches);
Expected result:
----------------
Success!
Actual result:
--------------
No action and no error reporting.