Lines Matching refs:pool

276                apr_pool_t *pool)
281 SVN_ERR(svn_ra_get_file(session, path, revision, NULL, NULL, &props, pool));
333 get_lock(svn_ra_session_t *session, apr_pool_t *pool)
341 apr_err = apr_gethostname(hostname_str, sizeof(hostname_str), pool);
345 mylocktoken = svn_string_createf(pool, "%s:%s", hostname_str,
346 svn_uuid_generate(pool));
348 subpool = svn_pool_create(pool);
365 (pool, _("Failed to get lock on destination "
387 apr_pool_t *pool);
398 apr_pool_t *pool)
402 SVN_ERR(get_lock(session, pool));
404 err = func(session, baton, pool);
406 err2 = svn_ra_change_rev_prop(session, 0, SVNSYNC_PROP_LOCK, NULL, pool);
428 open_tmp_file(apr_file_t **fp, void *callback_baton, apr_pool_t *pool)
433 pool, pool);
437 SVN_ERR(svn_io_temp_dir(&path, pool));
439 path = svn_path_join(path, "tempfile", pool);
442 svn_io_file_del_on_close, pool));
455 apr_pool_t *pool)
460 SVN_ERR(svn_ra_get_repos_root2(sess, &sess_root, pool));
462 SVN_ERR(svn_ra_get_repos_root(sess, &sess_root, pool));
491 apr_pool_t *pool)
493 apr_pool_t *subpool = svn_pool_create(pool);
500 SVN_ERR(svn_ra_rev_proplist(to_session, rev_to, &existing_props, pool));
502 SVN_ERR(svn_ra_rev_proplist(to_session, rev, &existing_props, pool));
505 SVN_ERR(svn_ra_rev_proplist(from_session, rev, &revprops, pool));
507 for (hi = apr_hash_first(pool, revprops); hi; hi = apr_hash_next(hi))
533 for (hi = apr_hash_first(pool, existing_props);
647 apr_pool_t *pool)
653 target_revision, pool));
661 apr_pool_t *pool,
665 initdir_baton_t *db = apr_pcalloc(pool, sizeof(*db));
670 &db->process_default, &db->process_recursive, pool));
674 base_revision, pool,
688 apr_pool_t *pool,
693 initdir_baton_t *db = apr_pcalloc(pool, sizeof(*db));
699 &db->process_recursive, pool));
705 SVN_ERR(svn_cmdline_printf(pool,
712 NULL, SVN_IGNORED_REVNUM, pool,
723 apr_pool_t *pool)
731 SVN_ERR(eb->wrapped_editor->close_directory(db->wrapped_dir_baton, pool));
741 apr_pool_t *pool,
746 initfile_baton_t *fb = apr_pcalloc(pool, sizeof(*fb));
751 path, eb->current, &fb->process, NULL, NULL, pool));
757 SVN_ERR(svn_cmdline_printf(pool,
764 NULL, SVN_IGNORED_REVNUM, pool,
777 apr_pool_t *pool,
788 base_checksum, pool,
804 apr_pool_t *pool)
813 text_checksum, pool));
822 apr_pool_t *pool)
848 name, value, pool));
857 apr_pool_t *pool)
883 name, value, pool));
890 apr_pool_t *pool)
895 SVN_ERR(eb->wrapped_editor->close_edit(eb->wrapped_edit_baton, pool));
918 apr_pool_t *pool)
920 svn_delta_editor_t *tree_editor = svn_delta_default_editor(pool);
921 initedit_baton_t *eb = apr_pcalloc(pool, sizeof(*eb));
974 apr_pool_t *pool)
978 SVN_ERR(svn_cmdline_printf(pool, _("Imported source revision %ld as revision %ld.\n"),
991 do_initialize(svn_ra_session_t *to_session, void *b, apr_pool_t *pool)
1006 SVN_ERR(svn_ra_get_latest_revnum(to_session, &latest, pool));
1017 &from_url, pool));
1029 baton, baton->config, pool));
1032 baton, baton->config, pool));
1036 pool));
1039 svn_string_create(baton->from_url, pool),
1040 pool));
1043 SVN_ERR(svn_ra_get_uuid2(from_session, &uuid, pool));
1045 SVN_ERR(svn_ra_get_uuid(from_session, &uuid, pool));
1049 svn_string_create(uuid, pool), pool));
1052 start_rev_str = svn_string_create(apr_psprintf(pool, "%ld", baton->start_rev),
1053 pool);
1055 start_rev_str, pool));
1057 start_rev_str, pool));
1062 svn_string_create(default_process, pool),
1063 pool));
1067 svn_string_create("", pool), pool));
1071 svn_string_create("", pool), pool));
1074 svn_string_create("0", pool), pool));
1081 SVN_ERR(copy_revprops(from_session, to_session, 0, 0, FALSE, pool));
1083 SVN_ERR(copy_revprops(from_session, to_session, 0, FALSE, pool));
1106 logrevprop = apr_hash_make(pool);
1108 svn_string_create("import", pool));
1112 NULL, FALSE, pool));
1115 baton->callbacks, baton, baton->config, pool));
1120 &init_editor, &init_baton, pool));
1125 pool));
1130 cancel_editor, cancel_baton, pool));
1132 svn_depth_infinity, TRUE, NULL, pool));
1133 SVN_ERR(reporter->finish_report(report_baton, pool));
1143 initialize_cmd(apr_getopt_t *os, void *b, apr_pool_t *pool)
1152 SVN_ERR(svn_opt_parse_num_args(&args, os, 2, pool));
1154 to_url = svn_path_canonicalize(APR_ARRAY_IDX(args, 0, const char *), pool);
1155 from_url = svn_path_canonicalize(APR_ARRAY_IDX(args, 1, const char *), pool);
1164 baton.to_url = svn_path_canonicalize(to_url, pool);
1165 baton.from_url = svn_path_canonicalize(from_url, pool);
1181 &callbacks, &baton, baton.config, pool));
1188 pool));
1191 SVN_ERR(check_if_session_is_at_repos_root(to_session, baton.to_url, pool));
1193 SVN_ERR(with_locked(to_session, do_initialize, &baton, pool));
1254 apr_pool_t *pool)
1259 err = svn_ra_rev_prop(to_session, 0, apr_psprintf(pool,
1262 &revprop, pool);
1278 apr_pool_t *pool)
1286 svn_stream_t *emptystream = svn_stream_empty(pool);
1296 NULL, SVN_IGNORED_REVNUM, pool,
1302 SVN_IGNORED_REVNUM, pool,
1306 subpool = svn_pool_create(pool);
1352 apr_pool_t *pool)
1361 NULL, SVN_IGNORED_REVNUM, pool,
1364 subpool = svn_pool_create(pool);
1427 apr_pool_t *pool)
1434 target_revision, pool);
1440 apr_pool_t *pool,
1445 node_baton_t *db = apr_pcalloc(pool, sizeof(*db));
1451 &db->prev_process_recursive, pool));
1454 &db->process_default, &db->process_recursive, pool));
1459 base_revision, pool,
1466 node_baton_t *dir_baton = apr_palloc(pool, sizeof(*dir_baton));
1469 base_revision, pool,
1484 apr_pool_t *pool)
1508 eb->current-1, &nodekind, pool));
1517 path, eb->current-1, &prev_process, NULL, NULL, pool));
1524 SVN_ERR(svn_cmdline_printf(pool,
1533 pb->wrapped_node_baton, pool));
1539 pb->wrapped_node_baton, pool);
1548 apr_pool_t *pool,
1554 node_baton_t *b = apr_pcalloc(pool, sizeof(*b));
1567 &b->process_recursive, pool));
1573 SVN_ERR(svn_cmdline_printf(pool,
1590 dst_rev = lookup_revnum(eb->to_session_prop, copyfrom_rev, pool);
1598 &nodekind, pool));
1602 copyfrom_path = apr_psprintf(pool, "%s%s", eb->to_url,
1603 svn_path_uri_encode(copyfrom_path, pool));
1614 dst_rev, pool,
1631 pb->wrapped_node_baton, eb->from_session_prop, pool));
1644 node_baton_t *b = apr_palloc(pool, sizeof(*b));
1647 copyfrom_path = apr_psprintf(pool, "%s%s", eb->to_url,
1648 svn_path_uri_encode(copyfrom_path, pool));
1652 copyfrom_rev, pool,
1666 apr_pool_t *pool,
1672 node_baton_t *db = apr_pcalloc(pool, sizeof(*db));
1686 eb->current-1, &nodekind, pool));
1696 pool));
1697 dst_rev = lookup_revnum(eb->to_session_prop, eb->current-1, pool);
1701 dst_rev, &nodekind, pool));
1712 &db->process_recursive, pool));
1724 SVN_ERR(svn_cmdline_printf(pool,
1734 SVN_ERR(svn_cmdline_printf(pool,
1750 base_revision, pool,
1760 NULL, SVN_IGNORED_REVNUM, pool,
1764 path, eb->current, 0, pool));
1765 for (hi = apr_hash_first(pool, dirprops); hi; hi = apr_hash_next(hi))
1771 SVN_ERR(change_dir_prop(db, key, val, pool));
1788 pb->wrapped_node_baton, pool));
1794 node_baton_t *db = apr_palloc(pool, sizeof(*db));
1797 base_revision, pool,
1812 apr_pool_t *pool,
1818 node_baton_t *fb = apr_pcalloc(pool, sizeof(*fb));
1830 eb->current, &fb->process, NULL, NULL, pool));
1837 SVN_ERR(svn_cmdline_printf(pool,
1853 dst_rev = lookup_revnum(eb->to_session_prop, copyfrom_rev, pool);
1861 &nodekind, pool));
1865 copyfrom_path = apr_psprintf(pool, "%s%s", eb->to_url,
1866 svn_path_uri_encode(copyfrom_path, pool));
1877 pool, &fb->wrapped_node_baton));
1884 pb->wrapped_node_baton, eb->from_session_prop, pool));
1888 node_baton_t *fb = apr_palloc(pool, sizeof(*fb));
1891 copyfrom_path = apr_psprintf(pool, "%s%s", eb->to_url,
1892 svn_path_uri_encode(copyfrom_path, pool));
1896 pool, &fb->wrapped_node_baton));
1909 apr_pool_t *pool,
1915 node_baton_t *fb = apr_pcalloc(pool, sizeof(*fb));
1927 eb->current-1, &nodekind, pool));
1934 NULL, NULL, pool));
1937 eb->current, &fb->process, NULL, NULL, pool));
1947 SVN_ERR(svn_cmdline_printf(pool,
1967 SVN_IGNORED_REVNUM, &nodekind, pool));
1974 base_revision, pool,
1982 eb->from_session_prop, pool));
1996 SVN_IGNORED_REVNUM, &nodekind, pool));
2006 pb->wrapped_node_baton, pool));
2012 node_baton_t *fb = apr_palloc(pool, sizeof(*fb));
2015 base_revision, pool,
2028 apr_pool_t *pool,
2042 base_checksum, pool,
2055 base_checksum, pool,
2063 apr_pool_t *pool)
2074 text_checksum, pool);
2080 apr_pool_t *pool)
2090 return eb->wrapped_editor->absent_file(path, fb->wrapped_node_baton, pool);
2095 apr_pool_t *pool)
2105 return eb->wrapped_editor->close_directory(db->wrapped_node_baton, pool);
2111 apr_pool_t *pool)
2122 pool);
2129 apr_pool_t *pool)
2162 name, value, pool);
2169 apr_pool_t *pool)
2202 name, value, pool);
2207 apr_pool_t *pool)
2218 SVN_ERR(eb->wrapped_editor->abort_edit(eb->wrapped_edit_baton, pool));
2219 SVN_ERR(svn_cmdline_printf(pool, _("Skipped revision %ld in source "
2237 eb->current, pool,
2241 eb->base_revision, pool,
2244 SVN_ERR(eb->wrapped_editor->close_directory(baton, pool));
2247 return eb->wrapped_editor->close_edit(eb->wrapped_edit_baton, pool);
2274 apr_pool_t *pool)
2276 svn_delta_editor_t *tree_editor = svn_delta_default_editor(pool);
2277 edit_baton_t *eb = apr_palloc(pool, sizeof(*eb));
2338 apr_pool_t *pool)
2344 SVN_ERR(svn_cmdline_printf(pool, _("Committed revision %ld (%ld in source repository).\n"),
2347 SVN_ERR(svn_cmdline_printf(pool, _("Committed revision %ld.\n"),
2350 SVN_ERR(svn_cmdline_printf(pool, _("Committed revision %ld.\n"),
2382 apr_pool_t *pool)
2391 &from_url, pool));
2393 &from_uuid, pool));
2395 last_merged_rev, pool));
2398 &start_rev_str, pool));
2415 config, pool));
2418 config, pool));
2422 pool));
2428 SVN_ERR(svn_ra_get_uuid2(*from_session, &uuid, pool));
2430 SVN_ERR(svn_ra_get_uuid(*from_session, &uuid, pool));
2448 do_synchronize(svn_ra_session_t *to_session, void *b, apr_pool_t *pool)
2473 baton, pool));
2475 &from_url, pool));
2477 &default_process, pool));
2479 default_process = svn_string_create("export", pool);
2481 &replace_externals_str, pool));
2484 &replace_license_str, pool));
2487 baton->callbacks, baton, baton->config, pool));
2489 baton->callbacks, baton, baton->config, pool));
2492 baton->callbacks, baton->config, baton, pool));
2515 &currently_copying, pool));
2518 SVN_ERR(svn_ra_get_latest_revnum(to_session, &to_latest, pool));
2531 SVN_ERR(svn_ra_get_latest_revnum(to_session, &to_latest, pool));
2556 to_latest, to_latest, TRUE, pool));
2559 to_latest, TRUE, pool));
2563 (apr_psprintf(pool, "%ld", last_merged), pool);
2574 last_merged_rev, pool));
2577 NULL, pool));
2596 SVN_ERR(svn_ra_get_latest_revnum(from_session, &from_latest, pool));
2601 subpool = svn_pool_create(pool);
2640 logrevprop = apr_hash_make(pool);
2642 svn_string_create("", pool));
2780 synchronize_cmd(apr_getopt_t *os, void *b, apr_pool_t *pool)
2789 SVN_ERR(svn_opt_parse_num_args(&args, os, 1, pool));
2791 to_url = svn_path_canonicalize(APR_ARRAY_IDX(args, 0, const char *), pool);
2806 baton.callbacks, &baton, baton.config, pool));
2813 pool));
2816 SVN_ERR(check_if_session_is_at_repos_root(to_session, to_url, pool));
2818 SVN_ERR(with_locked(to_session, do_synchronize, &baton, pool));
2845 do_copy_revprops(svn_ra_session_t *to_session, void *b, apr_pool_t *pool)
2857 baton, pool));
2864 baton->callbacks, baton->config, baton, pool));
2873 SVN_ERR(copy_revprops(from_session, to_session, baton->rev, baton->rev, FALSE, pool));
2875 SVN_ERR(copy_revprops(from_session, to_session, baton->rev, FALSE, pool));
2884 copy_revprops_cmd(apr_getopt_t *os, void *b, apr_pool_t *pool)
2895 SVN_ERR(svn_opt_parse_num_args(&args, os, 2, pool));
2897 to_url = svn_path_canonicalize(APR_ARRAY_IDX(args, 0, const char *), pool);
2917 baton.callbacks, &baton, baton.config, pool));
2924 pool));
2927 SVN_ERR(check_if_session_is_at_repos_root(to_session, to_url, pool));
2929 SVN_ERR(with_locked(to_session, do_copy_revprops, &baton, pool));
2942 help_cmd(apr_getopt_t *os, void *baton, apr_pool_t *pool)
2957 pool);
2959 SVN_ERR(svn_ra_print_modules(version_footer, pool));
2966 NULL, pool));
2972 pool));
2996 apr_pool_t *pool;
3012 pool = svn_pool_create(NULL);
3014 err = svn_ra_initialize(pool);
3023 received_opts = apr_array_make(pool, SVN_OPT_MAX_OPTIONS, sizeof(int));
3027 help_cmd(NULL, NULL, pool);
3028 svn_pool_destroy(pool);
3032 err = svn_cmdline__getopt_init(&os, argc, argv, pool);
3034 return svn_cmdline_handle_exit_error(err, pool, "svnsync: ");
3047 help_cmd(NULL, NULL, pool);
3048 svn_pool_destroy(pool);
3105 help_cmd(NULL, NULL, pool);
3106 svn_pool_destroy(pool);
3139 help_cmd(NULL, NULL, pool);
3140 svn_pool_destroy(pool);
3156 help_cmd(NULL, NULL, pool);
3157 svn_pool_destroy(pool);
3180 pool);
3185 svn_opt_format_option(&optstr, badopt, FALSE, pool);
3187 help_cmd(NULL, NULL, pool);
3191 (stderr, pool, _("subcommand '%s' doesn't accept option '%s'\n"
3194 svn_pool_destroy(pool);
3199 err = svn_config_get_config(&opt_baton.config, NULL, pool);
3201 return svn_cmdline_handle_exit_error(err, pool, "svnsync: ");
3244 pool);
3255 pool);
3265 pool);
3268 err = (*subcommand->cmd_func)(os, &opt_baton, pool);
3285 svn_pool_destroy(pool);