PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Version Control » VersionControl_SVN » Bug #8348

svn copy functionality is faulty

Details

Submitted2006-08-02 14:14 UTC
Frompeterh at mediatel dot co dot uk
StatusDuplicate
PackageVersionControl_SVN
PHP Version5.1.2
OSLinux 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.