PHP Subversion Functions

EditRocket provides the following information on Subversion functions in the PHP source code builder.

bool svn_add ( string $path [, bool $recursive [, bool $force ]] ) - Adds the file, directory or symbolic link at path to the working directory.

string svn_auth_get_parameter ( string $key ) - Retrieves authentication parameter at key.

void svn_auth_set_parameter ( string $key , string $value ) - Sets authentication parameter at key to value.

string svn_cat ( string $repos_url [, int $revision_no ] ) - Returns the contents of the URL repos_url to a file in the repository, optionally at revision number revision_no.

bool svn_checkout ( string $repos , string $targetpath [, int $revision ] ) - Checks out a working copy from the repository at repos to targetpath at revision revision.

bool svn_cleanup ( string $workingdir ) - Recursively cleanup working copy directory workingdir, finishing any incomplete operations and removing working copy locks. Use when a working copy is in limbo and needs to be usable again.

string svn_client_version ( void ) - Returns the version of the SVN client libraries

array svn_commit ( string $log , array $targets [, bool $dontrecurse ] ) - Commits changes made in the local working copy files enumerated in the targets array to the repository, with the log message log. Directories in the targets array will be recursively committed unless dontrecurse is set to true.

array svn_diff ( string $path1 , int $rev1 , string $path2 , int $rev2 ) - Recursively diffs two paths, path1 and path2.

bool svn_fs_abort_txn ( resource $txn ) -

resource svn_fs_apply_text ( resource $root , string $path ) -

resource svn_fs_begin_txn2 ( resource $repos , int $rev ) -

bool svn_fs_change_node_prop ( resource $root , string $path , string $name , string $value ) -

int svn_fs_check_path ( resource $fsroot , string $path ) -

bool svn_fs_contents_changed ( resource $root1 , string $path1 , resource $root2 , string $path2 ) -

bool svn_fs_copy ( resource $from_root , string $from_path , resource $to_root , string $to_path ) -

bool svn_fs_delete ( resource $root , string $path ) -

array svn_fs_dir_entries ( resource $fsroot , string $path ) -

resource svn_fs_file_contents ( resource $fsroot , string $path ) -

int svn_fs_file_length ( resource $fsroot , string $path ) -

bool svn_fs_is_dir ( resource $root , string $path ) -

bool svn_fs_is_file ( resource $root , string $path ) -

bool svn_fs_make_dir ( resource $root , string $path ) -

bool svn_fs_make_file ( resource $root , string $path ) -

int svn_fs_node_created_rev ( resource $fsroot , string $path ) -

string svn_fs_node_prop ( resource $fsroot , string $path , string $propname ) -

bool svn_fs_props_changed ( resource $root1 , string $path1 , resource $root2 , string $path2 ) -

string svn_fs_revision_prop ( resource $fs , int $revnum , string $propname ) -

resource svn_fs_revision_root ( resource $fs , int $revnum ) -

resource svn_fs_txn_root ( resource $txn ) -

int svn_fs_youngest_rev ( resource $fs ) -

bool svn_import ( string $path , string $url , bool $nonrecursive ) - Commits unversioned path into repository at url. If path is a directory and nonrecursive is FALSE, the directory will be imported recursively.

array svn_log ( string $repos_url [, int $revision_no ] ) - svn_log() returns the complete history of the item at the repository URL repos_url, or the history of a specific revision if revision_no is set.

array svn_ls ( string $repos_url [, int $revision_no ] ) - This function queries the repository URL and returns a list of files and directories, optionally from a specific revision.

resource svn_repos_create ( string $path [, array $config [, array $fsconfig ]] ) -

resource svn_repos_fs ( resource $repos ) -

resource svn_repos_fs_begin_txn_for_commit ( resource $repos , int $rev , string $author , string $log_msg ) -

int svn_repos_fs_commit_txn ( resource $txn ) -

bool svn_repos_hotcopy ( string $repospath , string $destpath , bool $cleanlogs ) -

resource svn_repos_open ( string $path ) -

bool svn_repos_recover ( string $path ) -

array svn_status ( string $path [, bool $recursive [, bool $get_all [, bool $update [, bool $no_ignore ]]]] ) - Returns the status of working copy files and directories, giving modifications, additions, deletions and other changes to items in the working copy.

int svn_update ( string $path [, int $revno [, bool $recurse ]] ) - Update working copy at path to revision revno. If recurse is true, directories will be recursively updated.