php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59810 add source revision of svn_copy
Submitted: 2011-06-10 21:40 UTC Modified: 2011-10-05 21:28 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
 [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 now 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-10-05 21:28 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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 17:01:30 2024 UTC