Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

svn_update(3) [php man page]

SVN_UPDATE(3)								 1							     SVN_UPDATE(3)

svn_update - Update working copy

SYNOPSIS
int svn_update (string $path, [int $revno = SVN_REVISION_HEAD], [bool $recurse = true]) DESCRIPTION
Update working copy at $path to revision $revno. If $recurse is true, directories will be recursively updated. PARAMETERS
o $path - Path to local working copy. Note Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath(3) or dirname(__FILE__). o $revno - Revision number to update to, default is SVN_REVISION_HEAD. o $recurse - Whether or not to recursively update directories. RETURN VALUES
Returns new revision number on success, returns FALSE on failure. NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. EXAMPLES
Example #1 Basic example This example demonstrates basic usage of this function: <?php echo svn_update(realpath('working-copy')); ?> The above example will output something similar to: 234 SEE ALSO
svn_checkout(3), svn_commit(3), SVN documentation for svn update. PHP Documentation Group SVN_UPDATE(3)

Check Out this Related Man Page

SVN_COMMIT(3)								 1							     SVN_COMMIT(3)

svn_commit - Sends changes from the local working copy to the repository

SYNOPSIS
array svn_commit (string $log, array $targets, [bool $recursive = true]) DESCRIPTION
Commits changes made in the local working copy files enumerated in the $targets array to the repository, with the log message $log. Direc- tories in the $targets array will be recursively committed unless $recursive is set to FALSE. Note This function does not have any parameters for specifying authentication, so a username and password must be set using svn_auth_set_parameter(3) PARAMETERS
o $log - String log text to commit o $targets - Array of local paths of files to be committed Warning This parameter must be an array, a string for a single target is not acceptable. Note Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath(3) or dirname(__FILE__). o $recursive - Boolean flag to disable recursive committing of directories in the $targets array. Default is TRUE. RETURN VALUES
Returns array in form of: array( 0 => integer revision number of commit 1 => string ISO 8601 date and time of commit 2 => name of committer ) Returns FALSE on failure. NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. EXAMPLES
Example #1 Basic example This example commits the calculator directory to a repository, using the username Bob and the password abc123 (hopefully, his pass- word is stronger): <?php svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, 'Bob'); svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, 'abc123'); var_dump(svn_commit('Log message of Bob's commit', array(realpath('calculator')))); ?> The above example will output: array( 0 => 1415, 1 => '2007-05-26T01:44:28.453125Z', 2 => 'Bob' ) SEE ALSO
svn_auth_set_parameter(3), SVN documentation on svn commit. PHP Documentation Group SVN_COMMIT(3)
Man Page