Subversion 함수
소개
이 확장 모듈은 실험적입니다. 이 확장 모듈의 작동 -- 함수의 이름과 이 확장 모듈에 대한 모든 문서 자료에 대해서 -- 은 이후의 PHP 릴리즈에서 예고 없이 변경될 수 있습니다. 이 확장 모듈의 사용은 사용자의 책임하에 이루어집니다.
This extension implements PHP bindings for » Subversion (SVN), a version control system, allowing PHP scripts to communicate with SVN repositories and working copies without direct command line calls to the svn executable.
요구 조건
The Subversion binaries are not necessary to use this extension. However, when compiling the extension, libsvn (the Subversion headers) must be available.
설치
PECL 확장 설치에 관한 정보는 매뉴얼의 PECL 확장 설치에 있습니다. 새 릴리즈, 내려받기, 소스파일, 개발자 정보, CHANGELOG 등의 추가 정보는 여기에 있습니다: » https://pecl.php.net/package/svn
If ./configure is having trouble finding the
SVN files (for example, Subversion was installed with a
different prefix directory), use
./configure --with-svn=$USR_PATH
to specify the directory where the
include/subversion-1/ folder is located.
PECL 확장 DLL은 » PHP 내려받기 페이지나 » https://pecl4win.php.net/에서 받을 수 있습니다.
If the extension is compiled against libsvn 1.3, functions that work with working copies will fail when used on working copies created by Subversion 1.4.
자원형
Subversion's lower-level svn_fs_* functions make use of resources that reference local file-system repositories. They can probably be created using svn_repos_fs() and svn_fs_revision_root(). (verify?)
이 확장은 리소스형을 정의하지 않습니다.
예약 상수
이 확장은 다음의 상수들을 정의합니다. 이 확장을 PHP에 내장했거나, 실행시에 동적으로 읽어들일 경우에만 사용할 수 있습니다.
- SVN_REVISON_HEAD (integer)
- Magic number (-1) specifying the HEAD revision
-
Constants usable with svn_auth_set_parameter()
- SVN_AUTH_PARAM_DEFAULT_USERNAME (string)
- Property for default username to use when performing basic authentication
- SVN_AUTH_PARAM_DEFAULT_PASSWORD (string)
- Property for default password to use when performing basic authentication
- SVN_AUTH_PARAM_NON_INTERACTIVE (string)
- SVN_AUTH_PARAM_DONT_STORE_PASSWORDS (string)
- SVN_AUTH_PARAM_NO_AUTH_CACHE (string)
- SVN_AUTH_PARAM_SSL_SERVER_FAILURES (string)
- SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO (string)
- SVN_AUTH_PARAM_CONFIG (string)
- SVN_AUTH_PARAM_SERVER_GROUP (string)
- SVN_AUTH_PARAM_CONFIG_DIR (string)
- PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS (string)
- Custom property for ignoring SSL cert verification errors
-
Filesystem constants
- SVN_FS_CONFIG_FS_TYPE (string)
- Configuration key that determines filesystem type
- SVN_FS_TYPE_BDB (string)
- Filesystem is Berkeley-DB implementation
- SVN_FS_TYPE_FSFS (string)
- Filesystem is native-filesystem implementation
-
Reserved property constants
- SVN_PROP_REVISION_DATE (string)
- svn:date
- SVN_PROP_REVISION_ORIG_DATE (string)
- svn:original-date
- SVN_PROP_REVISION_AUTHOR (string)
- svn:author
- SVN_PROP_REVISION_LOG (string)
- svn:log
-
Working copy status constants
- svn_wc_status_none (int)
- Status does not exist
- svn_wc_status_unversioned (int)
- Item is not versioned in working copy
- svn_wc_status_normal (int)
- Item exists, nothing else is happening
- svn_wc_status_added (int)
- Item is scheduled for addition
- svn_wc_status_missing (int)
- Item is versioned but missing from the working copy
- svn_wc_status_deleted (int)
- Item is scheduled for deletion
- svn_wc_status_replaced (int)
- Item was deleted and then re-added
- svn_wc_status_modified (int)
- Item (text or properties) was modified
- svn_wc_status_merged (int)
- Item's local modifications were merged with repository modifications
- svn_wc_status_conflicted (int)
- Item's local modifications conflicted with repository modifications
- svn_wc_status_ignored (int)
- Item is unversioned but configured to be ignored
- svn_wc_status_obstructed (int)
- Unversioned item is in the way of a versioned resource
- svn_wc_status_external (int)
- Unversioned path that is populated using svn:externals
- svn_wc_status_incomplete (int)
- Directory does not contain complete entries list
Table of Contents
- svn_add — Schedules the addition of an item in a working directory
- svn_auth_get_parameter — Retrieves authentication parameter
- svn_auth_set_parameter — Sets an authentication parameter
- svn_cat — Returns the contents of a file in a repository
- svn_checkout — Checks out a working copy from the repository
- svn_cleanup — Recursively cleanup a working copy directory, finishing incomplete operations and removing locks
- svn_client_version — Returns the version of the SVN client libraries
- svn_commit — Sends changes from the local working copy to the repository
- svn_diff — Recursively diffs two paths
- svn_fs_abort_txn — Abort a transaction, returns true if everything is ok, false othewise
- svn_fs_apply_text — Creates and returns a stream that will be used to replace
- svn_fs_begin_txn2 — Create a new transaction
- svn_fs_change_node_prop — Return true if everything is ok, false otherwise
- svn_fs_check_path — Determines what kind of item lives at path in a given repository fsroot
- svn_fs_contents_changed — Return true if content is different, false otherwise
- svn_fs_copy — Copies a file or a directory, returns true if all is ok, false otherwise
- svn_fs_delete — Deletes a file or a directory, return true if all is ok, false otherwise
- svn_fs_dir_entries — Enumerates the directory entries under path; returns a hash of dir names to file type
- svn_fs_file_contents — Returns a stream to access the contents of a file from a given version of the fs
- svn_fs_file_length — Returns the length of a file from a given version of the fs
- svn_fs_is_dir — Return true if the path points to a directory, false otherwise
- svn_fs_is_file — Return true if the path points to a file, false otherwise
- svn_fs_make_dir — Creates a new empty directory, returns true if all is ok, false otherwise
- svn_fs_make_file — Creates a new empty file, returns true if all is ok, false otherwise
- svn_fs_node_created_rev — Returns the revision in which path under fsroot was created
- svn_fs_node_prop — Returns the value of a property for a node
- svn_fs_props_changed — Return true if props are different, false otherwise
- svn_fs_revision_prop — Fetches the value of a named property
- svn_fs_revision_root — Get a handle on a specific version of the repository root
- svn_fs_txn_root — Creates and returns a transaction root
- svn_fs_youngest_rev — Returns the number of the youngest revision in the filesystem
- svn_import — Imports an unversioned path into a repository
- svn_log — Returns the commit log messages of a repository URL
- svn_ls — Returns list of directory contents in repository URL, optionally at revision number
- svn_repos_create — Create a new subversion repository at path
- svn_repos_fs_begin_txn_for_commit — Create a new transaction
- svn_repos_fs_commit_txn — Commits a transaction and returns the new revision
- svn_repos_fs — Gets a handle on the filesystem for a repository
- svn_repos_hotcopy — Make a hot-copy of the repos at repospath; copy it to destpath
- svn_repos_open — Open a shared lock on a repository.
- svn_repos_recover — Run recovery procedures on the repository located at path.
- svn_status — Returns the status of working copy files and directories
- svn_update — Update working copy