* Checks out a working copy from the repository * @link https://php.net/manual/en/function.svn-checkout.php * @param string $repos
* String URL path to directory in repository to check out. *
* @param string $targetpath* String local path to directory to check out in to *
* 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 or dirname(__FILE__). * @param int $revision [optional]* Integer revision number of repository to check out. Default is * HEAD, the most recent revision. *
* @param int $flags [optional]* Any combination of SVN_NON_RECURSIVE and * SVN_IGNORE_EXTERNALS. *
* @return bool TRUE on success or FALSE on failure. */ function svn_checkout($repos, $targetpath, $revision = SVN_REVISION_HEAD, $flags = 0) {} /** * (PECL svn >= 0.1.0)* String URL path to item in a repository. *
* @param int $revision_no [optional]* Integer revision number of item to retrieve, default is the HEAD * revision. *
* @return string the string contents of the item from the repository on * success, and FALSE on failure. */ function svn_cat($repos_url, $revision_no = SVN_REVISION_HEAD) {} /** * (PECL svn >= 0.1.0)* Enables recursion. *
* @param bool $peg [optional] * @return array On success, this function returns an array file listing in the format * of: ** [0] => Array * ( * [created_rev] => integer revision number of last edit * [last_author] => string author name of last edit * [size] => integer byte file size of file * [time] => string date of last edit in form 'M d H:i' * or 'M d Y', depending on how old the file is * [time_t] => integer unix timestamp of last edit * [name] => name of file/directory * [type] => type, can be 'file' or 'dir' * ) * [1] => ... **/ function svn_ls($repos_url, $revision_no = SVN_REVISION_HEAD, $recurse = false, $peg = false) {} /** * (PECL svn >= 0.1.0)
* Repository URL of the item to retrieve log history from. *
* @param int $start_revision [optional]* Revision number of the first log to retrieve. Use * SVN_REVISION_HEAD to retrieve the log from * the most recent revision. *
* @param int $end_revision [optional]* Revision number of the last log to retrieve. Defaults to * start_revision if specified or to * SVN_REVISION_INITIAL otherwise. *
* @param int $limit [optional]* Number of logs to retrieve. *
* @param int $flags [optional]* Any combination of SVN_OMIT_MESSAGES, * SVN_DISCOVER_CHANGED_PATHS and * SVN_STOP_ON_COPY. *
* @return array On success, this function returns an array file listing in the format * of: ** [0] => Array, ordered most recent (highest) revision first * ( * [rev] => integer revision number * [author] => string author name * [msg] => string log message * [date] => string date formatted per ISO 8601, i.e. date('c') * [paths] => Array, describing changed files * ( * [0] => Array * ( * [action] => string letter signifying change * [path] => absolute repository path of changed file * ) * [1] => ... * ) * ) * [1] => ... ** *
* The output will always be a numerically indexed array of arrays, * even when there are none or only one log message(s). *
** The value of action is a subset of the * status output * in the first column, where possible values are: *
*Letter | *Description | *
M | *Item/props was modified | *
A | *Item was added | *
D | *Item was deleted | *
R | *Item was replaced | *
* If no changes were made to the item, an empty array is returned.
*/
function svn_log($repos_url, $start_revision = null, $end_revision = null, $limit = 0, $flags = SVN_DISCOVER_CHANGED_PATHS|SVN_STOP_ON_COPY) {}
/**
* (PECL svn >= 0.1.0)
* Sets an authentication parameter
* @link https://php.net/manual/en/function.svn-auth-set-parameter.php
* @param string $key
* String key name. Use the authentication constants * defined by this extension to specify a key. *
* @param string $value* String value to set to parameter at key. Format of value varies * with the parameter. *
* @return void No value is returned. */ function svn_auth_set_parameter($key, $value) {} /** * (PECL svn >= 0.1.0)* String key name. Use the authentication constants * defined by this extension to specify a key. *
* @return string|null the string value of the parameter at key; * returns NULL if parameter does not exist. */ function svn_auth_get_parameter($key) {} /** * (PECL svn >= 0.1.0)* First path to diff. This can be a URL to a file/directory in an SVN * repository or a local file/directory path. *
* 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 or dirname(__FILE__). * If a local file path has only backslashes and no forward slashes, * this extension will fail to find the path. Always * replace all backslashes with forward slashes when using this * function. * @param int $rev1* First path's revision number. Use SVN_REVISION_HEAD * to specify the most recent revision. *
* @param string $path2* Second path to diff. See path1 for description. *
* @param int $rev2* Second path's revision number. See rev1 * for description. *
* @return array an array-list consisting of two streams: the first is the diff output * and the second contains error stream output. The streams can be * read using fread. Returns FALSE or NULL on * error. * *
* The diff output will, by default, be in the form of Subversion's
* custom unified diff format, but an
* external
* diff engine may be
* used depending on Subversion's configuration.
*/
function svn_diff($path1, $rev1, $path2, $rev2) {}
/**
* (PECL svn >= 0.1.0)
* Recursively cleanup a working copy directory, finishing incomplete operations and removing locks
* @link https://php.net/manual/en/function.svn-cleanup.php
* @param string $workingdir
* String path to local working directory to cleanup *
* 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 or dirname(__FILE__). * @return bool TRUE on success or FALSE on failure. */ function svn_cleanup($workingdir) {} /** * (PECL svn >= 0.3.0)* The path to the working repository. *
* @param bool $recursive [optional]* Optionally make recursive changes. *
* @return bool TRUE on success or FALSE on failure. */ function svn_revert($path, $recursive = false) {} function svn_resolved() {} /** * (PECL svn >= 0.1.0)* String log text to commit *
* @param array $targets* Array of local paths of files to be committed *
* This parameter must be an array, a string for a single * target is not acceptable. * 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 or dirname(__FILE__). * @param bool $recursive [optional]* Boolean flag to disable recursive committing of * directories in the targets array. * Default is TRUE. *
* @return array 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. *
*/ function svn_commit($log, array $targets, $recursive = true) {} function svn_lock() {} function svn_unlock() {} /** * (PECL svn >= 0.1.0)* Path of item to add. *
* 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 or dirname(__FILE__). * @param bool $recursive [optional]* If item is directory, whether or not to recursively add * all of its contents. Default is TRUE *
* @param bool $force [optional]* If true, Subversion will recurse into already versioned directories * in order to add unversioned files that may be hiding in those * directories. Default is FALSE *
* @return bool TRUE on success or FALSE on failure. */ function svn_add($path, $recursive = true, $force = false) {} /** * (PECL svn >= 0.1.0)* Local path to file or directory to retrieve status of. *
* 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 or dirname(__FILE__). * @param int $flags [optional]* Any combination of SVN_NON_RECURSIVE, * SVN_ALL (regardless of modification status), * SVN_SHOW_UPDATES (entries will be added for items * that are out-of-date), SVN_NO_IGNORE (disregard * svn:ignore properties when scanning for new files) * and SVN_IGNORE_EXTERNALS. *
* @return array a numerically indexed array of associative arrays detailing * the status of items in the repository: * ** Array ( * [0] => Array ( * // information on item * ) * [1] => ... * ) **
* The information on the item is an associative array that can contain * the following keys: *
* path * String path to file/directory of this entry on local filesystem. * text_status * Status of item's text. Refer to status constants for possible values. * repos_text_status * Status of item's text in repository. Only accurate if * update was set to TRUE. * Refer to status constants for possible values. * prop_status * Status of item's properties. Refer to status constants for possible values. * repos_prop_status * Status of item's property in repository. Only accurate if * update was set to TRUE. Refer to status constants for possible values. * locked * Whether or not the item is locked. (Only set if TRUE.) * copied * Whether or not the item was copied (scheduled for addition with * history). (Only set if TRUE.) * switched * Whether or not the item was switched using the switch command. * (Only set if TRUE) ** These keys are only set if the item is versioned: *
* name * Base name of item in repository. * url * URL of item in repository. * repos * Base URL of repository. * revision * Integer revision of item in working copy. * kind * Type of item, i.e. file or directory. Refer to type constants for possible values. * schedule * Scheduled action for item, i.e. addition or deletion. Constants * for these magic numbers are not available, they can * be emulated by using: *
* if (!defined('svn_wc_schedule_normal')) {
* define('svn_wc_schedule_normal', 0); // nothing special
* define('svn_wc_schedule_add', 1); // item will be added
* define('svn_wc_schedule_delete', 2); // item will be deleted
* define('svn_wc_schedule_replace', 3); // item will be added and deleted
* }
*
* deleted
* Whether or not the item was deleted, but parent revision lags
* behind. (Only set if TRUE.)
* absent
* Whether or not the item is absent, that is, Subversion knows that
* there should be something there but there isn't. (Only set if
* TRUE.)
* incomplete
* Whether or not the entries file for a directory is incomplete.
* (Only set if TRUE.)
* cmt_date
* Integer Unix timestamp of last commit date. (Unaffected by update.)
* cmt_rev
* Integer revision of last commit. (Unaffected by update.)
* cmt_author
* String author of last commit. (Unaffected by update
*/
function svn_status($path, $flags = 0) {}
/**
* (PECL svn >= 0.1.0)* Path to local working copy. *
* 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 or dirname(__FILE__). * @param int $revno [optional]* Revision number to update to, default is SVN_REVISION_HEAD. *
* @param bool $recurse [optional]* Whether or not to recursively update directories. *
* @return int|false new revision number on success, returns FALSE on failure. */ function svn_update($path, $revno = SVN_REVISION_HEAD, $recurse = true) {} /** * (PECL svn >= 0.2.0)* Path of file or directory to import. *
* 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 or dirname(__FILE__). * @param string $url* Repository URL to import into. *
* @param bool $nonrecursive* Whether or not to refrain from recursively processing directories. *
* @return bool TRUE on success or FALSE on failure. */ function svn_import($path, $url, $nonrecursive) {} function svn_info() {} /** * (PECL svn >= 0.3.0)* The path to the current repository. *
* @param string $topath* The path to the new repository. *
* @param bool $working_copy [optional]* If TRUE, it will export uncommitted files from the working copy. *
* @param int $revision_no [optional] * @return bool TRUE on success or FALSE on failure. */ function svn_export($frompath, $topath, $working_copy = true, $revision_no = -1) {} function svn_copy() {} function svn_switch() {} /** * (PECL svn >= 0.3.0)* The repository URL. *
* @param int $revision_no [optional]* The revision number. *
* @return array An array of SVN blame information separated by line * which includes the revision number, line number, line of code, * author, and date. */ function svn_blame($repository_url, $revision_no = SVN_REVISION_HEAD) {} /** * (PECL svn >= 0.4.0)* Path of item to delete. *
* 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 or dirname(__FILE__). * @param bool $force [optional]* If TRUE, the file will be deleted even if it has local modifications. * Otherwise, local modifications will result in a failure. Default is * FALSE *
* @return bool TRUE on success or FALSE on failure. */ function svn_delete($path, $force = false) {} /** * (PECL svn >= 0.4.0)* The path to the working copy or repository. *
* @param string $log_message [optional] * @return bool TRUE on success or FALSE on failure. */ function svn_mkdir($path, $log_message = null) {} /** * @link https://php.net/manual/en/ref.svn.php * @param string $src_path * @param string $dst_path * @param bool $force [optional] * @return mixed */ function svn_move($src_path, $dst_path, $force = false) {} /** * @link https://php.net/manual/en/ref.svn.php * @param string $path * @param bool $recurse [optional] * @param int $revision [optional] * @return mixed */ function svn_proplist($path, $recurse = false, $revision) {} /** * @param string $path * @param string $property_name * @param bool $recurse [optional] * @param int $revision [optional] * @return mixed */ function svn_propget($path, $property_name, $recurse = false, $revision) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param null|array $config [optional]* Its description *
* @param null|array $fsconfig [optional]* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_repos_create($path, ?array $config = null, ?array $fsconfig = null) {} /** * (PECL svn >= 0.1.0)* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_repos_recover($path) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param string $destpath* Its description *
* @param bool $cleanlogs* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_repos_hotcopy($repospath, $destpath, $cleanlogs) {} /** * (PECL svn >= 0.1.0)* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_repos_open($path) {} /** * (PECL svn >= 0.1.0)* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_repos_fs($repos) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param int $rev* Its description *
* @param string $author* Its description *
* @param string $log_msg* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_repos_fs_begin_txn_for_commit($repos, $rev, $author, $log_msg) {} /** * (PECL svn >= 0.2.0)* Its description *
* @return int What the function returns, first on success, then on failure. */ function svn_repos_fs_commit_txn($txn) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param int $revnum* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_fs_revision_root($fs, $revnum) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param string $path* Its description *
* @return int What the function returns, first on success, then on failure. */ function svn_fs_check_path($fsroot, $path) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param int $revnum* Its description *
* @param string $propname* Its description *
* @return string What the function returns, first on success, then on failure. */ function svn_fs_revision_prop($fs, $revnum, $propname) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param string $path* Its description *
* @return array What the function returns, first on success, then on failure. */ function svn_fs_dir_entries($fsroot, $path) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param string $path* Its description *
* @return int What the function returns, first on success, then on failure. */ function svn_fs_node_created_rev($fsroot, $path) {} /** * (PECL svn >= 0.1.0)* Its description *
* @return int What the function returns, first on success, then on failure. */ function svn_fs_youngest_rev($fs) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param string $path* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_fs_file_contents($fsroot, $path) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param string $path* Its description *
* @return int What the function returns, first on success, then on failure. */ function svn_fs_file_length($fsroot, $path) {} /** * (PECL svn >= 0.2.0)* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_fs_txn_root($txn) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_make_file($root, $path) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_make_dir($root, $path) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_fs_apply_text($root, $path) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $from_path* Its description *
* @param resource $to_root* Its description *
* @param string $to_path* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_copy($from_root, $from_path, $to_root, $to_path) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_delete($root, $path) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param int $rev* Its description *
* @return resource What the function returns, first on success, then on failure. */ function svn_fs_begin_txn2($repos, $rev) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_is_dir($root, $path) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_is_file($root, $path) {} /** * (PECL svn >= 0.1.0)* Its description *
* @param string $path* Its description *
* @param string $propname* Its description *
* @return string What the function returns, first on success, then on failure. */ function svn_fs_node_prop($fsroot, $path, $propname) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path* Its description *
* @param string $name* Its description *
* @param string $value* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_change_node_prop($root, $path, $name, $value) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path1* Its description *
* @param resource $root2* Its description *
* @param string $path2* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_contents_changed($root1, $path1, $root2, $path2) {} /** * (PECL svn >= 0.2.0)* Its description *
* @param string $path1* Its description *
* @param resource $root2* Its description *
* @param string $path2* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_props_changed($root1, $path1, $root2, $path2) {} /** * (PECL svn >= 0.2.0)* Its description *
* @return bool What the function returns, first on success, then on failure. */ function svn_fs_abort_txn($txn) {} /** * Property for default username to use when performing basic authentication * @link https://php.net/manual/en/svn.constants.php */ define('SVN_AUTH_PARAM_DEFAULT_USERNAME', "svn:auth:username"); /** * Property for default password to use when performing basic authentication * @link https://php.net/manual/en/svn.constants.php */ define('SVN_AUTH_PARAM_DEFAULT_PASSWORD', "svn:auth:password"); define('SVN_AUTH_PARAM_NON_INTERACTIVE', "svn:auth:non-interactive"); define('SVN_AUTH_PARAM_DONT_STORE_PASSWORDS', "svn:auth:dont-store-passwords"); define('SVN_AUTH_PARAM_NO_AUTH_CACHE', "svn:auth:no-auth-cache"); define('SVN_AUTH_PARAM_SSL_SERVER_FAILURES', "svn:auth:ssl:failures"); define('SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO', "svn:auth:ssl:cert-info"); define('SVN_AUTH_PARAM_CONFIG', "svn:auth:config-category-servers"); define('SVN_AUTH_PARAM_SERVER_GROUP', "svn:auth:server-group"); define('SVN_AUTH_PARAM_CONFIG_DIR', "svn:auth:config-dir"); /** * Custom property for ignoring SSL cert verification errors * @link https://php.net/manual/en/svn.constants.php */ define('PHP_SVN_AUTH_PARAM_IGNORE_SSL_VERIFY_ERRORS', "php:svn:auth:ignore-ssl-verify-errors"); /** * Configuration key that determines filesystem type * @link https://php.net/manual/en/svn.constants.php */ define('SVN_FS_CONFIG_FS_TYPE', "fs-type"); /** * Filesystem is Berkeley-DB implementation * @link https://php.net/manual/en/svn.constants.php */ define('SVN_FS_TYPE_BDB', "bdb"); /** * Filesystem is native-filesystem implementation * @link https://php.net/manual/en/svn.constants.php */ define('SVN_FS_TYPE_FSFS', "fsfs"); /** * svn:date * @link https://php.net/manual/en/svn.constants.php */ define('SVN_PROP_REVISION_DATE', "svn:date"); /** * svn:original-date * @link https://php.net/manual/en/svn.constants.php */ define('SVN_PROP_REVISION_ORIG_DATE', "svn:original-date"); /** * svn:author * @link https://php.net/manual/en/svn.constants.php */ define('SVN_PROP_REVISION_AUTHOR', "svn:author"); /** * svn:log * @link https://php.net/manual/en/svn.constants.php */ define('SVN_PROP_REVISION_LOG', "svn:log"); define('SVN_REVISION_INITIAL', 1); /** * Magic number (-1) specifying the HEAD revision * @link https://php.net/manual/en/svn.constants.php */ define('SVN_REVISION_HEAD', -1); define('SVN_REVISION_BASE', -2); define('SVN_REVISION_COMMITTED', -3); define('SVN_REVISION_PREV', -4); define('SVN_REVISION_UNSPECIFIED', -5); define('SVN_NON_RECURSIVE', 1); define('SVN_DISCOVER_CHANGED_PATHS', 2); define('SVN_OMIT_MESSAGES', 4); define('SVN_STOP_ON_COPY', 8); define('SVN_ALL', 16); define('SVN_SHOW_UPDATES', 32); define('SVN_NO_IGNORE', 64); /** * Status does not exist * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_NONE', 1); /** * Item is not versioned in working copy * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_UNVERSIONED', 2); /** * Item exists, nothing else is happening * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_NORMAL', 3); /** * Item is scheduled for addition * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_ADDED', 4); /** * Item is versioned but missing from the working copy * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_MISSING', 5); /** * Item is scheduled for deletion * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_DELETED', 6); /** * Item was deleted and then re-added * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_REPLACED', 7); /** * Item (text or properties) was modified * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_MODIFIED', 8); /** * Item's local modifications were merged with repository modifications * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_MERGED', 9); /** * Item's local modifications conflicted with repository modifications * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_CONFLICTED', 10); /** * Item is unversioned but configured to be ignored * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_IGNORED', 11); /** * Unversioned item is in the way of a versioned resource * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_OBSTRUCTED', 12); /** * Unversioned path that is populated using svn:externals * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_EXTERNAL', 13); /** * Directory does not contain complete entries list * @link https://php.net/manual/en/svn.constants.php */ define('SVN_WC_STATUS_INCOMPLETE', 14); /** * Absent * @link https://php.net/manual/en/svn.constants.php */ define('SVN_NODE_NONE', 0); /** * File * @link https://php.net/manual/en/svn.constants.php */ define('SVN_NODE_FILE', 1); /** * Directory * @link https://php.net/manual/en/svn.constants.php */ define('SVN_NODE_DIR', 2); /** * Something Subversion cannot identify * @link https://php.net/manual/en/svn.constants.php */ define('SVN_NODE_UNKNOWN', 3); define('SVN_WC_SCHEDULE_NORMAL', 0); define('SVN_WC_SCHEDULE_ADD', 1); define('SVN_WC_SCHEDULE_DELETE', 2); define('SVN_WC_SCHEDULE_REPLACE', 3);