pub unsafe extern "C" fn svn_repos_load_fs6(
repos: *mut svn_repos_t,
dumpstream: *mut svn_stream_t,
start_rev: svn_revnum_t,
end_rev: svn_revnum_t,
uuid_action: svn_repos_load_uuid,
parent_dir: *const c_char,
use_pre_commit_hook: svn_boolean_t,
use_post_commit_hook: svn_boolean_t,
validate_props: svn_boolean_t,
ignore_dates: svn_boolean_t,
normalize_props: svn_boolean_t,
notify_func: svn_repos_notify_func_t,
notify_baton: *mut c_void,
cancel_func: svn_cancel_func_t,
cancel_baton: *mut c_void,
pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Read and parse dumpfile-formatted @a dumpstream, reconstructing filesystem revisions in already-open @a repos, handling uuids in accordance with @a uuid_action. Use @a pool for all allocation.
If the dumpstream contains copy history that is unavailable in the repository, an error will be thrown.
The repository’s UUID will be updated iff the dumpstream contains a UUID and @a uuid_action is not equal to #svn_repos_load_uuid_ignore and either the repository contains no revisions or @a uuid_action is equal to #svn_repos_load_uuid_force.
If the dumpstream contains no UUID, then @a uuid_action is ignored and the repository UUID is not touched.
@a start_rev and @a end_rev act as filters, the lower and upper (inclusive) range values of revisions in @a dumpstream which will be loaded. Either both of these values are #SVN_INVALID_REVNUM (in which case no revision-based filtering occurs at all), or both are valid revisions (where @a start_rev is older than or equivalent to @a end_rev).
If @a parent_dir is not NULL, then the parser will reparent all the loaded nodes, from root to @a parent_dir. The directory @a parent_dir must be an existing directory in the repository.
If @a use_pre_commit_hook is set, call the repository’s pre-commit hook before committing each loaded revision.
If @a use_post_commit_hook is set, call the repository’s post-commit hook after committing each loaded revision.
If @a validate_props is set, then validate Subversion revision and node properties (those in the svn: namespace) against established rules for those things.
If @a ignore_dates is set, ignore any revision datestamps found in @a dumpstream, allowing the revisions created by the load process to be stamped as if they were newly created via the normal commit process.
If @a normalize_props is set, attempt to normalize invalid Subversion revision and node properties (those in the svn: namespace) so that their values would follow the established rules for them. For example, for such properties, typically the value must be in UTF-8 with LF line endings.
@note The details or the performed normalizations are deliberately left unspecified and may change in the future.
If non-NULL, use @a notify_func and @a notify_baton to send notification of events to the caller.
If @a cancel_func is not @c NULL, it is called periodically with @a cancel_baton as argument to see if the client wishes to cancel the load.
@since New in 1.10.