php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59811 add source revision of svn_copy
Submitted: 2011-06-10 21:40 UTC Modified: 2011-08-22 01:43 UTC
From: he dot chen at zte dot com dot cn Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.2.17 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: he dot chen at zte dot com dot cn
New email:
PHP Version: OS:

 

 [2011-06-10 21:40 UTC] he dot chen at zte dot com dot cn
Description:
------------
I always use svn pecl to mantain the respository other than 
the working copy, I found that svn_copy has no way to treat 
the source file according to the revision, so I enhanced it as 
below


Reproduce code:
---------------
compare to svn.c@311999
change@line2134: /* {{{ proto resource svn_copy(string log, string src_path, string destination_path [, bool working_copy = true[, int revision = -1]])

add@line2151: 	long revnum = -1;


change@line2158: 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|bl",
					&log, &loglen, &src_path, &src_pathlen, &dst_path, &dst_pathlen, &working_copy, &revnum)) {

add@line2174: 	revision.value.number = revnum;

change@line2179: 		revision.kind = php_svn_get_revision_kind(revision);




Expected result:
----------------
can treat the revision of the source file

Actual result:
--------------
it works

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-22 01:43 UTC] alan at akbkhome dot com
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Can you check this works as expected
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC