|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-22 01:43 UTC] alan at akbkhome dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
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