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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 14 = ?
Subscribe to this entry?

 
 [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: Tue May 07 19:01:29 2024 UTC