⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svn_wc.h

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 H
📖 第 1 页 / 共 5 页
字号:
                                   int depth,                                   apr_pool_t *pool);/** * Similar to svn_wc_adm_probe_try2(), but with @a tree_lock instead of * @a depth.  @a depth is set to -1 if @a tree_lock is @c TRUE, else 0. * * @deprecated Provided for backward compatibility with the 1.0 API. */svn_error_t *svn_wc_adm_probe_try(svn_wc_adm_access_t **adm_access,                                  svn_wc_adm_access_t *associated,                                  const char *path,                                  svn_boolean_t write_lock,                                  svn_boolean_t tree_lock,                                  apr_pool_t *pool);/** Give up the access baton @a adm_access, and its lock if any. This will * recursively close any batons in the same set that are direct * subdirectories of @a adm_access.  Any physical locks will be removed from * the working copy.  Lock removal is unconditional, there is no check to * determine if cleanup is required. */svn_error_t *svn_wc_adm_close(svn_wc_adm_access_t *adm_access);/** Return the path used to open the access baton @a adm_access */const char *svn_wc_adm_access_path(svn_wc_adm_access_t *adm_access);/** Return the pool used by access baton @a adm_access */apr_pool_t *svn_wc_adm_access_pool(svn_wc_adm_access_t *adm_access);/** Return @c TRUE is the access baton @a adm_access has a write lock, * @c FALSE otherwise. Compared to svn_wc_locked() this is a cheap, fast * function that doesn't access the filesystem. */svn_boolean_t svn_wc_adm_locked(svn_wc_adm_access_t *adm_access);/** Set @a *locked to non-zero if @a path is locked, else set it to zero. */svn_error_t *svn_wc_locked(svn_boolean_t *locked,                            const char *path,                           apr_pool_t *pool);/** * Return @c TRUE if @a name is the name of the WC administrative * directory.  Use @a pool for any temporary allocations.  Only works * with base directory names, not paths or URIs. * * For compatibility, the default name (.svn) will always be treated * as an admin dir name, even if the working copy is actually using an * alternative name. * * @since New in 1.3. */svn_boolean_t svn_wc_is_adm_dir(const char *name, apr_pool_t *pool);/** * Return the name of the administrative directory. * Use @a pool for any temporary allocations. * * The returned pointer will refer to either a statically allocated * string, or to a string allocated in @a pool. * * @since New in 1.3. */const char *svn_wc_get_adm_dir(apr_pool_t *pool);/** * Use @a name for the administrative directory in the working copy. * Use @a pool for any temporary allocations. * * The list of valid names is limited.  Currently only ".svn" (the * default) and "_svn" are allowed. * * @note This function changes global (per-process) state and must be * called in a single-threaded context during the initialization of a * Subversion client. * * @since New in 1.3. */svn_error_t *svn_wc_set_adm_dir(const char *name, apr_pool_t *pool);/** Traversal information is information gathered by a working copy * crawl or update.  For example, the before and after values of the * svn:externals property are important after an update, and since * we're traversing the working tree anyway (a complete traversal * during the initial crawl, and a traversal of changed paths during * the checkout/update/switch), it makes sense to gather the * property's values then instead of making a second pass. */typedef struct svn_wc_traversal_info_t svn_wc_traversal_info_t;/** Return a new, empty traversal info object, allocated in @a pool. */svn_wc_traversal_info_t *svn_wc_init_traversal_info(apr_pool_t *pool);/** Set @a *externals_old and @a *externals_new to hash tables representing * changes to values of the svn:externals property on directories * traversed by @a traversal_info. * * @a traversal_info is obtained from svn_wc_init_traversal_info(), but is * only useful after it has been passed through another function, such * as svn_wc_crawl_revisions(), svn_wc_get_update_editor(), * svn_wc_get_switch_editor(), etc. * * Each hash maps <tt>const char *</tt> directory names onto  * <tt>const char *</tt> values of the externals property for that directory.   * The dir names are full paths -- that is, anchor plus target, not target  * alone. The values are not parsed, they are simply copied raw, and are * never null: directories that acquired or lost the property are * simply omitted from the appropriate table.  Directories whose value * of the property did not change show the same value in each hash. * * The hashes, keys, and values have the same lifetime as @a traversal_info. */void svn_wc_edited_externals(apr_hash_t **externals_old,                             apr_hash_t **externals_new,                             svn_wc_traversal_info_t *traversal_info);/** One external item.  This usually represents one line from an * svn:externals description but with the path and URL * canonicalized. */typedef struct svn_wc_external_item_t{  /** The name of the subdirectory into which this external should be      checked out.  This is relative to the parent directory that      holds this external item.  (Note that these structs are often      stored in hash tables with the target dirs as keys, so this      field will often be redundant.) */  const char *target_dir;  /** Where to check out from. */  const char *url;  /** What revision to check out.  The only valid kinds for this are      svn_opt_revision_number, svn_opt_revision_date, and      svn_opt_revision_head. */  svn_opt_revision_t revision;} svn_wc_external_item_t;/** * Return a duplicate of @a item, allocated in @a pool.  No part of the new * item will be shared with @a item. * * @since New in 1.3. */svn_wc_external_item_t *svn_wc_external_item_dup(const svn_wc_external_item_t *item,                         apr_pool_t *pool);/** * If @a externals_p is non-null, set @a *externals_p to an array of * @c svn_wc_external_item_t * objects based on @a desc. * * If the format of @a desc is invalid, don't touch @a *externals_p and * return @c SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION.  Thus, if * you just want to check the validity of an externals description, * and don't care about the parsed result, pass null for @a externals_p. * * The format of @a desc is the same as for values of the directory * property @c SVN_PROP_EXTERNALS, which see. * * Allocate the table, keys, and values in @a pool. * * Use @a parent_directory only in constructing error strings. * * @since New in 1.1. */svn_error_t *svn_wc_parse_externals_description2(apr_array_header_t **externals_p,                                    const char *parent_directory,                                    const char *desc,                                    apr_pool_t *pool);/** * Similar to svn_wc_parse_externals_description2(), but returns the * parsed externals in a hash instead of an array.  This function * should not be used, as storing the externals in a hash causes their * order of evaluation to be not easily identifiable. * * @deprecated Provided for backward compatibility with the 1.0 API. */svn_error_t *svn_wc_parse_externals_description(apr_hash_t **externals_p,                                   const char *parent_directory,                                   const char *desc,                                   apr_pool_t *pool);/* Notification/callback handling. *//** * @defgroup svn_wc_notifications notification callback handling * @{ * * In many cases, the WC library will scan a working copy and make * changes. The caller usually wants to know when each of these changes * has been made, so that it can display some kind of notification to * the user. * * These notifications have a standard callback function type, which * takes the path of the file that was affected, and a caller- * supplied baton. * * Note that the callback is a 'void' return -- this is a simple * reporting mechanism, rather than an opportunity for the caller to * alter the operation of the WC library. * * Note also that some of the actions are used across several * different Subversion commands.  For example, the update actions are * also used for checkouts, switches, and merges. *//** The type of action occurring. */typedef enum svn_wc_notify_action_t{  /** Adding a path to revision control. */  svn_wc_notify_add = 0,  /** Copying a versioned path. */  svn_wc_notify_copy,    /** Deleting a versioned path. */  svn_wc_notify_delete,  /** Restoring a missing path from the pristine text-base. */  svn_wc_notify_restore,    /** Reverting a modified path. */  svn_wc_notify_revert,  /** A revert operation has failed. */  svn_wc_notify_failed_revert,  /** Resolving a conflict. */  svn_wc_notify_resolved,  /** Skipping a path. */  svn_wc_notify_skip,  /** Got a delete in an update. */  svn_wc_notify_update_delete,  /** Got an add in an update. */  svn_wc_notify_update_add,  /** Got any other action in an update. */  svn_wc_notify_update_update,  /** The last notification in an update (including updates of externals). */  svn_wc_notify_update_completed,  /** Updating an external module. */  svn_wc_notify_update_external,  /** The last notification in a status (including status on externals). */  svn_wc_notify_status_completed,  /** Running status on an external module. */  svn_wc_notify_status_external,  /** Committing a modification. */  svn_wc_notify_commit_modified,    /** Committing an addition. */  svn_wc_notify_commit_added,  /** Committing a deletion. */  svn_wc_notify_commit_deleted,  /** Committing a replacement. */  svn_wc_notify_commit_replaced,  /** Transmitting post-fix text-delta data for a file. */  svn_wc_notify_commit_postfix_txdelta,  /** Processed a single revision's blame. */  svn_wc_notify_blame_revision,  /** Locking a path. @since New in 1.2. */  svn_wc_notify_locked,  /** Unlocking a path. @since New in 1.2. */  svn_wc_notify_unlocked,  /** Failed to lock a path. @since New in 1.2. */  svn_wc_notify_failed_lock,  /** Failed to unlock a path. @since New in 1.2. */  svn_wc_notify_failed_unlock} svn_wc_notify_action_t;/** The type of notification that is occurring. */typedef enum svn_wc_notify_state_t{  svn_wc_notify_state_inapplicable = 0,  /** Notifier doesn't know or isn't saying. */  svn_wc_notify_state_unknown,  /** The state did not change. */  svn_wc_notify_state_unchanged,  /** The item wasn't present. */  svn_wc_notify_state_missing,  /** An unversioned item obstructed work. */  svn_wc_notify_state_obstructed,  /** Pristine state was modified. */  svn_wc_notify_state_changed,  /** Modified state had mods merged in. */  svn_wc_notify_state_merged,  /** Modified state got conflicting mods. */  svn_wc_notify_state_conflicted} svn_wc_notify_state_t;/** * What happened to a lock during an operation. * * @since New in 1.2. */typedef enum svn_wc_notify_lock_state_t {  svn_wc_notify_lock_state_inapplicable = 0,  svn_wc_notify_lock_state_unknown,  /** The lock wasn't changed. */  svn_wc_notify_lock_state_unchanged,  /** The item was locked. */  svn_wc_notify_lock_state_locked,  /** The item was unlocked. */  svn_wc_notify_lock_state_unlocked} svn_wc_notify_lock_state_t;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -