2 * deprecated.c: holding file for all deprecated APIs.
3 * "we can't lose 'em, but we can shun 'em!"
5 * ====================================================================
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License. You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied. See the License for the
20 * specific language governing permissions and limitations
22 * ====================================================================
25 /* We define this here to remove any further warnings about the usage of
26 deprecated functions in this file. */
27 #define SVN_DEPRECATED
29 #include "svn_repos.h"
30 #include "svn_compat.h"
32 #include "svn_props.h"
34 #include "svn_private_config.h"
41 /*** From commit.c ***/
44 svn_repos_get_commit_editor4(const svn_delta_editor_t **editor,
48 const char *repos_url,
49 const char *base_path,
52 svn_commit_callback2_t commit_callback,
54 svn_repos_authz_callback_t authz_callback,
58 apr_hash_t *revprop_table = apr_hash_make(pool);
60 svn_hash_sets(revprop_table, SVN_PROP_REVISION_AUTHOR,
61 svn_string_create(user, pool));
63 svn_hash_sets(revprop_table, SVN_PROP_REVISION_LOG,
64 svn_string_create(log_msg, pool));
65 return svn_repos_get_commit_editor5(editor, edit_baton, repos, txn,
66 repos_url, base_path, revprop_table,
67 commit_callback, commit_baton,
68 authz_callback, authz_baton, pool);
73 svn_repos_get_commit_editor3(const svn_delta_editor_t **editor,
77 const char *repos_url,
78 const char *base_path,
81 svn_commit_callback_t callback,
83 svn_repos_authz_callback_t authz_callback,
87 svn_commit_callback2_t callback2;
88 void *callback2_baton;
90 svn_compat_wrap_commit_callback(&callback2, &callback2_baton,
91 callback, callback_baton,
94 return svn_repos_get_commit_editor4(editor, edit_baton, repos, txn,
95 repos_url, base_path, user,
97 callback2_baton, authz_callback,
103 svn_repos_get_commit_editor2(const svn_delta_editor_t **editor,
107 const char *repos_url,
108 const char *base_path,
111 svn_commit_callback_t callback,
112 void *callback_baton,
115 return svn_repos_get_commit_editor3(editor, edit_baton, repos, txn,
116 repos_url, base_path, user,
117 log_msg, callback, callback_baton,
123 svn_repos_get_commit_editor(const svn_delta_editor_t **editor,
126 const char *repos_url,
127 const char *base_path,
130 svn_commit_callback_t callback,
131 void *callback_baton,
134 return svn_repos_get_commit_editor2(editor, edit_baton, repos, NULL,
135 repos_url, base_path, user,
137 callback_baton, pool);
141 svn_repos_open2(svn_repos_t **repos_p,
143 apr_hash_t *fs_config,
146 return svn_repos_open3(repos_p, path, fs_config, pool, pool);
150 svn_repos_open(svn_repos_t **repos_p,
154 return svn_repos_open2(repos_p, path, NULL, pool);
158 /*** From repos.c ***/
161 svn_error_t *(*start_callback)(void *baton);
162 void *start_callback_baton;
166 recovery_started(void *baton,
167 const svn_repos_notify_t *notify,
168 apr_pool_t *scratch_pool)
170 struct recover_baton *rb = baton;
172 if (notify->action == svn_repos_notify_mutex_acquired
173 && rb->start_callback != NULL)
174 svn_error_clear(rb->start_callback(rb->start_callback_baton));
178 svn_repos_recover3(const char *path,
179 svn_boolean_t nonblocking,
180 svn_error_t *(*start_callback)(void *baton),
181 void *start_callback_baton,
182 svn_cancel_func_t cancel_func, void *cancel_baton,
185 struct recover_baton rb;
187 rb.start_callback = start_callback;
188 rb.start_callback_baton = start_callback_baton;
190 return svn_repos_recover4(path, nonblocking, recovery_started, &rb,
191 cancel_func, cancel_baton, pool);
195 svn_repos_recover2(const char *path,
196 svn_boolean_t nonblocking,
197 svn_error_t *(*start_callback)(void *baton),
198 void *start_callback_baton,
201 return svn_repos_recover3(path, nonblocking,
202 start_callback, start_callback_baton,
208 svn_repos_recover(const char *path,
211 return svn_repos_recover2(path, FALSE, NULL, NULL, pool);
215 svn_repos_upgrade(const char *path,
216 svn_boolean_t nonblocking,
217 svn_error_t *(*start_callback)(void *baton),
218 void *start_callback_baton,
221 struct recover_baton rb;
223 rb.start_callback = start_callback;
224 rb.start_callback_baton = start_callback_baton;
226 return svn_repos_upgrade2(path, nonblocking, recovery_started, &rb, pool);
230 svn_repos_hotcopy2(const char *src_path,
231 const char *dst_path,
232 svn_boolean_t clean_logs,
233 svn_boolean_t incremental,
234 svn_cancel_func_t cancel_func,
238 return svn_error_trace(svn_repos_hotcopy3(src_path, dst_path, clean_logs,
239 incremental, NULL, NULL,
240 cancel_func, cancel_baton, pool));
244 svn_repos_hotcopy(const char *src_path,
245 const char *dst_path,
246 svn_boolean_t clean_logs,
249 return svn_error_trace(svn_repos_hotcopy2(src_path, dst_path, clean_logs,
250 FALSE, NULL, NULL, pool));
253 /*** From reporter.c ***/
255 svn_repos_begin_report(void **report_baton,
257 const char *username,
260 const char *s_operand,
261 const char *switch_path,
262 svn_boolean_t text_deltas,
263 svn_boolean_t recurse,
264 svn_boolean_t ignore_ancestry,
265 const svn_delta_editor_t *editor,
267 svn_repos_authz_func_t authz_read_func,
268 void *authz_read_baton,
271 return svn_repos_begin_report2(report_baton,
278 SVN_DEPTH_INFINITY_OR_FILES(recurse),
280 FALSE, /* don't send copyfrom args */
289 svn_repos_begin_report2(void **report_baton,
294 const char *tgt_path,
295 svn_boolean_t text_deltas,
297 svn_boolean_t ignore_ancestry,
298 svn_boolean_t send_copyfrom_args,
299 const svn_delta_editor_t *editor,
301 svn_repos_authz_func_t authz_read_func,
302 void *authz_read_baton,
305 return svn_repos_begin_report3(report_baton,
319 0, /* disable zero-copy code path */
324 svn_repos_set_path2(void *baton, const char *path, svn_revnum_t rev,
325 svn_boolean_t start_empty, const char *lock_token,
328 return svn_repos_set_path3(baton, path, rev, svn_depth_infinity,
329 start_empty, lock_token, pool);
333 svn_repos_set_path(void *baton, const char *path, svn_revnum_t rev,
334 svn_boolean_t start_empty, apr_pool_t *pool)
336 return svn_repos_set_path2(baton, path, rev, start_empty, NULL, pool);
340 svn_repos_link_path2(void *baton, const char *path, const char *link_path,
341 svn_revnum_t rev, svn_boolean_t start_empty,
342 const char *lock_token, apr_pool_t *pool)
344 return svn_repos_link_path3(baton, path, link_path, rev, svn_depth_infinity,
345 start_empty, lock_token, pool);
349 svn_repos_link_path(void *baton, const char *path, const char *link_path,
350 svn_revnum_t rev, svn_boolean_t start_empty,
353 return svn_repos_link_path2(baton, path, link_path, rev, start_empty,
357 /*** From dir-delta.c ***/
359 svn_repos_dir_delta(svn_fs_root_t *src_root,
360 const char *src_parent_dir,
361 const char *src_entry,
362 svn_fs_root_t *tgt_root,
363 const char *tgt_fullpath,
364 const svn_delta_editor_t *editor,
366 svn_repos_authz_func_t authz_read_func,
367 void *authz_read_baton,
368 svn_boolean_t text_deltas,
369 svn_boolean_t recurse,
370 svn_boolean_t entry_props,
371 svn_boolean_t ignore_ancestry,
374 return svn_repos_dir_delta2(src_root,
384 SVN_DEPTH_INFINITY_OR_FILES(recurse),
390 /*** From replay.c ***/
392 svn_repos_replay(svn_fs_root_t *root,
393 const svn_delta_editor_t *editor,
397 return svn_repos_replay2(root,
398 "" /* the whole tree */,
399 SVN_INVALID_REVNUM, /* no low water mark */
400 FALSE /* no text deltas */,
402 NULL /* no authz func */,
403 NULL /* no authz baton */,
407 /*** From fs-wrap.c ***/
409 svn_repos_fs_change_rev_prop3(svn_repos_t *repos,
413 const svn_string_t *new_value,
414 svn_boolean_t use_pre_revprop_change_hook,
415 svn_boolean_t use_post_revprop_change_hook,
416 svn_repos_authz_func_t authz_read_func,
417 void *authz_read_baton,
420 return svn_repos_fs_change_rev_prop4(repos, rev, author, name, NULL,
422 use_pre_revprop_change_hook,
423 use_post_revprop_change_hook,
425 authz_read_baton, pool);
429 svn_repos_fs_change_rev_prop2(svn_repos_t *repos,
433 const svn_string_t *new_value,
434 svn_repos_authz_func_t authz_read_func,
435 void *authz_read_baton,
438 return svn_repos_fs_change_rev_prop3(repos, rev, author, name, new_value,
439 TRUE, TRUE, authz_read_func,
440 authz_read_baton, pool);
446 svn_repos_fs_change_rev_prop(svn_repos_t *repos,
450 const svn_string_t *new_value,
453 return svn_repos_fs_change_rev_prop2(repos, rev, author, name, new_value,
457 struct pack_notify_wrapper_baton
459 svn_fs_pack_notify_t notify_func;
464 pack_notify_wrapper_func(void *baton,
465 const svn_repos_notify_t *notify,
466 apr_pool_t *scratch_pool)
468 struct pack_notify_wrapper_baton *pnwb = baton;
470 svn_error_clear(pnwb->notify_func(pnwb->notify_baton, notify->shard,
471 notify->action - 3, scratch_pool));
475 svn_repos_fs_pack(svn_repos_t *repos,
476 svn_fs_pack_notify_t notify_func,
478 svn_cancel_func_t cancel_func,
482 struct pack_notify_wrapper_baton pnwb;
484 pnwb.notify_func = notify_func;
485 pnwb.notify_baton = notify_baton;
487 return svn_repos_fs_pack2(repos, pack_notify_wrapper_func, &pnwb,
488 cancel_func, cancel_baton, pool);
493 svn_repos_fs_get_locks(apr_hash_t **locks,
496 svn_repos_authz_func_t authz_read_func,
497 void *authz_read_baton,
500 return svn_error_trace(svn_repos_fs_get_locks2(locks, repos, path,
503 authz_read_baton, pool));
507 /*** From logs.c ***/
509 svn_repos_get_logs3(svn_repos_t *repos,
510 const apr_array_header_t *paths,
514 svn_boolean_t discover_changed_paths,
515 svn_boolean_t strict_node_history,
516 svn_repos_authz_func_t authz_read_func,
517 void *authz_read_baton,
518 svn_log_message_receiver_t receiver,
519 void *receiver_baton,
522 svn_log_entry_receiver_t receiver2;
523 void *receiver2_baton;
525 svn_compat_wrap_log_receiver(&receiver2, &receiver2_baton,
526 receiver, receiver_baton,
529 return svn_repos_get_logs4(repos, paths, start, end, limit,
530 discover_changed_paths, strict_node_history,
531 FALSE, svn_compat_log_revprops_in(pool),
532 authz_read_func, authz_read_baton,
533 receiver2, receiver2_baton,
538 svn_repos_get_logs2(svn_repos_t *repos,
539 const apr_array_header_t *paths,
542 svn_boolean_t discover_changed_paths,
543 svn_boolean_t strict_node_history,
544 svn_repos_authz_func_t authz_read_func,
545 void *authz_read_baton,
546 svn_log_message_receiver_t receiver,
547 void *receiver_baton,
550 return svn_repos_get_logs3(repos, paths, start, end, 0,
551 discover_changed_paths, strict_node_history,
552 authz_read_func, authz_read_baton, receiver,
553 receiver_baton, pool);
558 svn_repos_get_logs(svn_repos_t *repos,
559 const apr_array_header_t *paths,
562 svn_boolean_t discover_changed_paths,
563 svn_boolean_t strict_node_history,
564 svn_log_message_receiver_t receiver,
565 void *receiver_baton,
568 return svn_repos_get_logs3(repos, paths, start, end, 0,
569 discover_changed_paths, strict_node_history,
570 NULL, NULL, /* no authz stuff */
571 receiver, receiver_baton, pool);
574 /*** From rev_hunt.c ***/
576 svn_repos_history(svn_fs_t *fs,
578 svn_repos_history_func_t history_func,
582 svn_boolean_t cross_copies,
585 return svn_repos_history2(fs, path, history_func, history_baton,
587 start, end, cross_copies, pool);
591 svn_repos_get_file_revs(svn_repos_t *repos,
595 svn_repos_authz_func_t authz_read_func,
596 void *authz_read_baton,
597 svn_repos_file_rev_handler_t handler,
601 svn_file_rev_handler_t handler2;
602 void *handler2_baton;
604 svn_compat_wrap_file_rev_handler(&handler2, &handler2_baton, handler,
605 handler_baton, pool);
607 return svn_repos_get_file_revs2(repos, path, start, end, FALSE,
608 authz_read_func, authz_read_baton,
609 handler2, handler2_baton, pool);
612 /*** From dump.c ***/
614 svn_repos_dump_fs(svn_repos_t *repos,
615 svn_stream_t *stream,
616 svn_stream_t *feedback_stream,
617 svn_revnum_t start_rev,
618 svn_revnum_t end_rev,
619 svn_boolean_t incremental,
620 svn_cancel_func_t cancel_func,
624 return svn_repos_dump_fs2(repos, stream, feedback_stream, start_rev,
625 end_rev, incremental, FALSE, cancel_func,
629 /* Implementation of svn_repos_notify_func_t to wrap the output to a
630 response stream for svn_repos_dump_fs2() and svn_repos_verify_fs() */
632 repos_notify_handler(void *baton,
633 const svn_repos_notify_t *notify,
634 apr_pool_t *scratch_pool)
636 svn_stream_t *feedback_stream = baton;
639 switch (notify->action)
641 case svn_repos_notify_warning:
642 svn_error_clear(svn_stream_puts(feedback_stream, notify->warning_str));
645 case svn_repos_notify_dump_rev_end:
646 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
647 _("* Dumped revision %ld.\n"),
651 case svn_repos_notify_verify_rev_end:
652 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
653 _("* Verified revision %ld.\n"),
657 case svn_repos_notify_load_txn_committed:
658 if (notify->old_revision == SVN_INVALID_REVNUM)
660 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
661 _("\n------- Committed revision %ld >>>\n\n"),
662 notify->new_revision));
666 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
667 _("\n------- Committed new rev %ld"
668 " (loaded from original rev %ld"
669 ") >>>\n\n"), notify->new_revision,
670 notify->old_revision));
674 case svn_repos_notify_load_node_start:
676 switch (notify->node_action)
678 case svn_node_action_change:
679 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
680 _(" * editing path : %s ..."),
684 case svn_node_action_delete:
685 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
686 _(" * deleting path : %s ..."),
690 case svn_node_action_add:
691 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
692 _(" * adding path : %s ..."),
696 case svn_node_action_replace:
697 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
698 _(" * replacing path : %s ..."),
706 case svn_repos_notify_load_node_done:
708 svn_error_clear(svn_stream_write(feedback_stream, _(" done.\n"), &len));
711 case svn_repos_notify_load_copied_node:
713 svn_error_clear(svn_stream_write(feedback_stream, "COPIED...", &len));
716 case svn_repos_notify_load_txn_start:
717 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
718 _("<<< Started new transaction, based on "
719 "original revision %ld\n"),
720 notify->old_revision));
723 case svn_repos_notify_load_normalized_mergeinfo:
724 svn_error_clear(svn_stream_printf(feedback_stream, scratch_pool,
725 _(" removing '\\r' from %s ..."),
726 SVN_PROP_MERGEINFO));
736 svn_repos_dump_fs2(svn_repos_t *repos,
737 svn_stream_t *stream,
738 svn_stream_t *feedback_stream,
739 svn_revnum_t start_rev,
740 svn_revnum_t end_rev,
741 svn_boolean_t incremental,
742 svn_boolean_t use_deltas,
743 svn_cancel_func_t cancel_func,
747 return svn_error_trace(svn_repos_dump_fs3(repos,
754 ? repos_notify_handler
763 svn_repos_verify_fs2(svn_repos_t *repos,
764 svn_revnum_t start_rev,
765 svn_revnum_t end_rev,
766 svn_repos_notify_func_t notify_func,
768 svn_cancel_func_t cancel_func,
772 return svn_error_trace(svn_repos_verify_fs3(repos,
786 svn_repos_verify_fs(svn_repos_t *repos,
787 svn_stream_t *feedback_stream,
788 svn_revnum_t start_rev,
789 svn_revnum_t end_rev,
790 svn_cancel_func_t cancel_func,
794 return svn_error_trace(svn_repos_verify_fs2(repos,
798 ? repos_notify_handler
806 /*** From load.c ***/
809 svn_repos_load_fs4(svn_repos_t *repos,
810 svn_stream_t *dumpstream,
811 svn_revnum_t start_rev,
812 svn_revnum_t end_rev,
813 enum svn_repos_load_uuid uuid_action,
814 const char *parent_dir,
815 svn_boolean_t use_pre_commit_hook,
816 svn_boolean_t use_post_commit_hook,
817 svn_boolean_t validate_props,
818 svn_repos_notify_func_t notify_func,
820 svn_cancel_func_t cancel_func,
824 return svn_repos_load_fs5(repos, dumpstream, start_rev, end_rev,
825 uuid_action, parent_dir,
826 use_post_commit_hook, use_post_commit_hook,
827 validate_props, FALSE,
828 notify_func, notify_baton,
829 cancel_func, cancel_baton, pool);
833 svn_repos_load_fs3(svn_repos_t *repos,
834 svn_stream_t *dumpstream,
835 enum svn_repos_load_uuid uuid_action,
836 const char *parent_dir,
837 svn_boolean_t use_pre_commit_hook,
838 svn_boolean_t use_post_commit_hook,
839 svn_boolean_t validate_props,
840 svn_repos_notify_func_t notify_func,
842 svn_cancel_func_t cancel_func,
846 return svn_repos_load_fs4(repos, dumpstream,
847 SVN_INVALID_REVNUM, SVN_INVALID_REVNUM,
848 uuid_action, parent_dir,
849 use_pre_commit_hook, use_post_commit_hook,
850 validate_props, notify_func, notify_baton,
851 cancel_func, cancel_baton, pool);
855 svn_repos_load_fs2(svn_repos_t *repos,
856 svn_stream_t *dumpstream,
857 svn_stream_t *feedback_stream,
858 enum svn_repos_load_uuid uuid_action,
859 const char *parent_dir,
860 svn_boolean_t use_pre_commit_hook,
861 svn_boolean_t use_post_commit_hook,
862 svn_cancel_func_t cancel_func,
866 return svn_repos_load_fs3(repos, dumpstream, uuid_action, parent_dir,
867 use_pre_commit_hook, use_post_commit_hook, FALSE,
868 feedback_stream ? repos_notify_handler : NULL,
869 feedback_stream, cancel_func, cancel_baton, pool);
873 static svn_repos_parser_fns_t *
874 fns_from_fns2(const svn_repos_parse_fns2_t *fns2,
877 svn_repos_parser_fns_t *fns;
879 fns = apr_palloc(pool, sizeof(*fns));
880 fns->new_revision_record = fns2->new_revision_record;
881 fns->uuid_record = fns2->uuid_record;
882 fns->new_node_record = fns2->new_node_record;
883 fns->set_revision_property = fns2->set_revision_property;
884 fns->set_node_property = fns2->set_node_property;
885 fns->remove_node_props = fns2->remove_node_props;
886 fns->set_fulltext = fns2->set_fulltext;
887 fns->close_node = fns2->close_node;
888 fns->close_revision = fns2->close_revision;
892 static svn_repos_parser_fns2_t *
893 fns2_from_fns3(const svn_repos_parse_fns3_t *fns3,
896 svn_repos_parser_fns2_t *fns2;
898 fns2 = apr_palloc(pool, sizeof(*fns2));
899 fns2->new_revision_record = fns3->new_revision_record;
900 fns2->uuid_record = fns3->uuid_record;
901 fns2->new_node_record = fns3->new_node_record;
902 fns2->set_revision_property = fns3->set_revision_property;
903 fns2->set_node_property = fns3->set_node_property;
904 fns2->remove_node_props = fns3->remove_node_props;
905 fns2->set_fulltext = fns3->set_fulltext;
906 fns2->close_node = fns3->close_node;
907 fns2->close_revision = fns3->close_revision;
908 fns2->delete_node_property = fns3->delete_node_property;
909 fns2->apply_textdelta = fns3->apply_textdelta;
913 static svn_repos_parse_fns2_t *
914 fns2_from_fns(const svn_repos_parser_fns_t *fns,
917 svn_repos_parse_fns2_t *fns2;
919 fns2 = apr_palloc(pool, sizeof(*fns2));
920 fns2->new_revision_record = fns->new_revision_record;
921 fns2->uuid_record = fns->uuid_record;
922 fns2->new_node_record = fns->new_node_record;
923 fns2->set_revision_property = fns->set_revision_property;
924 fns2->set_node_property = fns->set_node_property;
925 fns2->remove_node_props = fns->remove_node_props;
926 fns2->set_fulltext = fns->set_fulltext;
927 fns2->close_node = fns->close_node;
928 fns2->close_revision = fns->close_revision;
929 fns2->delete_node_property = NULL;
930 fns2->apply_textdelta = NULL;
934 static svn_repos_parse_fns3_t *
935 fns3_from_fns2(const svn_repos_parser_fns2_t *fns2,
938 svn_repos_parse_fns3_t *fns3;
940 fns3 = apr_palloc(pool, sizeof(*fns3));
941 fns3->magic_header_record = NULL;
942 fns3->uuid_record = fns2->uuid_record;
943 fns3->new_revision_record = fns2->new_revision_record;
944 fns3->new_node_record = fns2->new_node_record;
945 fns3->set_revision_property = fns2->set_revision_property;
946 fns3->set_node_property = fns2->set_node_property;
947 fns3->remove_node_props = fns2->remove_node_props;
948 fns3->set_fulltext = fns2->set_fulltext;
949 fns3->close_node = fns2->close_node;
950 fns3->close_revision = fns2->close_revision;
951 fns3->delete_node_property = fns2->delete_node_property;
952 fns3->apply_textdelta = fns2->apply_textdelta;
957 svn_repos_parse_dumpstream2(svn_stream_t *stream,
958 const svn_repos_parser_fns2_t *parse_fns,
960 svn_cancel_func_t cancel_func,
964 svn_repos_parse_fns3_t *fns3 = fns3_from_fns2(parse_fns, pool);
966 return svn_repos_parse_dumpstream3(stream, fns3, parse_baton, FALSE,
967 cancel_func, cancel_baton, pool);
971 svn_repos_parse_dumpstream(svn_stream_t *stream,
972 const svn_repos_parser_fns_t *parse_fns,
974 svn_cancel_func_t cancel_func,
978 svn_repos_parse_fns2_t *fns2 = fns2_from_fns(parse_fns, pool);
980 return svn_repos_parse_dumpstream2(stream, fns2, parse_baton,
981 cancel_func, cancel_baton, pool);
985 svn_repos_load_fs(svn_repos_t *repos,
986 svn_stream_t *dumpstream,
987 svn_stream_t *feedback_stream,
988 enum svn_repos_load_uuid uuid_action,
989 const char *parent_dir,
990 svn_cancel_func_t cancel_func,
994 return svn_repos_load_fs2(repos, dumpstream, feedback_stream,
995 uuid_action, parent_dir, FALSE, FALSE,
996 cancel_func, cancel_baton, pool);
1000 svn_repos_get_fs_build_parser4(const svn_repos_parse_fns3_t **callbacks,
1003 svn_revnum_t start_rev,
1004 svn_revnum_t end_rev,
1005 svn_boolean_t use_history,
1006 svn_boolean_t validate_props,
1007 enum svn_repos_load_uuid uuid_action,
1008 const char *parent_dir,
1009 svn_repos_notify_func_t notify_func,
1013 SVN_ERR(svn_repos_get_fs_build_parser5(callbacks, parse_baton,
1020 FALSE, FALSE, /*hooks */
1021 FALSE /*ignore_dates*/,
1025 return SVN_NO_ERROR;
1029 svn_repos_get_fs_build_parser3(const svn_repos_parse_fns2_t **callbacks,
1032 svn_boolean_t use_history,
1033 svn_boolean_t validate_props,
1034 enum svn_repos_load_uuid uuid_action,
1035 const char *parent_dir,
1036 svn_repos_notify_func_t notify_func,
1040 const svn_repos_parse_fns3_t *fns3;
1042 SVN_ERR(svn_repos_get_fs_build_parser4(&fns3, parse_baton, repos,
1045 use_history, validate_props,
1046 uuid_action, parent_dir,
1047 notify_func, notify_baton, pool));
1049 *callbacks = fns2_from_fns3(fns3, pool);
1050 return SVN_NO_ERROR;
1054 svn_repos_get_fs_build_parser2(const svn_repos_parse_fns2_t **parser,
1057 svn_boolean_t use_history,
1058 enum svn_repos_load_uuid uuid_action,
1059 svn_stream_t *outstream,
1060 const char *parent_dir,
1063 return svn_repos_get_fs_build_parser3(parser, parse_baton, repos, use_history,
1064 FALSE, uuid_action, parent_dir,
1065 outstream ? repos_notify_handler : NULL,
1070 svn_repos_get_fs_build_parser(const svn_repos_parser_fns_t **parser_callbacks,
1073 svn_boolean_t use_history,
1074 enum svn_repos_load_uuid uuid_action,
1075 svn_stream_t *outstream,
1076 const char *parent_dir,
1079 const svn_repos_parse_fns2_t *fns2;
1081 SVN_ERR(svn_repos_get_fs_build_parser2(&fns2, parse_baton, repos,
1082 use_history, uuid_action, outstream,
1085 *parser_callbacks = fns_from_fns2(fns2, pool);
1086 return SVN_NO_ERROR;
1091 svn_repos_fs_begin_txn_for_update(svn_fs_txn_t **txn_p,
1097 /* ### someday, we might run a read-hook here. */
1099 /* Begin the transaction. */
1100 SVN_ERR(svn_fs_begin_txn2(txn_p, repos->fs, rev, 0, pool));
1102 /* We pass the author to the filesystem by adding it as a property
1105 /* User (author). */
1110 val.len = strlen(author);
1111 SVN_ERR(svn_fs_change_txn_prop(*txn_p, SVN_PROP_REVISION_AUTHOR,
1115 return SVN_NO_ERROR;
1118 /*** From authz.c ***/
1121 svn_repos_authz_read(svn_authz_t **authz_p, const char *file,
1122 svn_boolean_t must_exist, apr_pool_t *pool)
1124 return svn_repos__authz_read(authz_p, file, NULL, must_exist,