FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=14114&edit=1

ID: 14114
Updated by: michiel.rook@gmail.com
Reported By: alexander dot tumanovsky at envisionext dot com dot
ua
Summary: Delete command requires -m switch
-Status: Open
+Status: Closed
Type: Bug
Package: VersionControl_SVN
Operating System: Irrelevant
Package Version: 0.3.1
PHP Version: Irrelevant
-Assigned To:
+Assigned To: mrook
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: mrook
This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on
pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




Previous Comments:
------------------------------------------------------------------------

[2008-06-10 05:03:40] alexandertumanovsky

Description:
------------
VersionControl_SVN_Delete requires -m parameter to always be specified,
however local non-commit operations do not take a log message:

svn: Local, non-commit operations do not take a log message (cmd:
/usr/bin/svn delete -m "Delete using Templates Editor"
web/sites/2/design/1/Affiliates/templates_editor_test_file.txt)

Test script:
---------------
<?php
$options = array(
'fetchmode' => VERSIONCONTROL_SVN_FETCHMODE_RAW,
'svn_path' => '/usr/bin/svn',
'url' => 'http://svn.example.com/',
'username' => 'root',
'password' => 'toor',
);
$svn = VersionControl_SVN::factory(array('del'), $options);
$svn->run(array('local/path/to/deletable/file'));
//no message switch passed cause we work in local working copy

$svnstack = &PEAR_ErrorStack::singleton('VersionControl_SVN');
if (count($errs = $svnstack->getErrors())) {
foreach ($errs as $err) {
echo '<br />'.$err['message']."<br />\n";
echo "Command used: " . $err['params']['cmd'];
echo $svn->_prepped_cmd;
}
}

var_dump(file_exists('local/path/to/deletable/file'));

Expected result:
----------------
boolean(false)

Actual result:
--------------
svn delete requires the following switch: (m|message|F|file)
boolean(true)

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 9, '09 at 5:55p
activeAug 9, '09 at 5:55p
posts1
users1
websitepear.php.net

1 user in discussion

Michiel Rook: 1 post

People

Translate

site design / logo © 2022 Grokbase